ID:               47078
 Updated by:       scott...@php.net
 Reported By:      jan dot matousek at skype dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         XML related
 Operating System: Mac OS X 10.5
 PHP Version:      5.2.8
 New Comment:

Duplicate of bug #45996


Previous Comments:
------------------------------------------------------------------------

[2009-01-12 12:32:42] jan dot matousek at skype dot net

Description:
------------
XML parser does not return entities (& > < "). The
problem occurs only when running PHP as apache2 module, and does not
occur with PHP apache2 module supplied with Mac OS (PHP 5.2.6 built: Jul
15 2008 23:16:51).

Having compiled php-5.2.8 and httpd-2.2.10. Configure command is 

./configure --with-apxs2=/usr/local/apache2/bin/apxs

Also happens with compiled php-5.2.6, I have not tried other versions.
I am prepared to provide more details when necessary.

Reproduce code:
---------------
<?php

function char_data($p, $data) { echo "[[$data]]\n"; }

$p = xml_parser_create();
xml_set_character_data_handler($p, 'char_data');
xml_parse($p, '<?xml version="1.0"?><root>c&amp;a</root>', true);


Expected result:
----------------
[[c]]
[[&]]
[[a]]


Actual result:
--------------
[[c]]
[[a]]



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47078&edit=1

Reply via email to