|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-12 12:48 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 03:00:01 2025 UTC |
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&a</root>', true); Expected result: ---------------- [[c]] [[&]] [[a]] Actual result: -------------- [[c]] [[a]]