|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-12-23 04:20 UTC] matjaz dot ostroversnik at ztm dot si
Description:
------------
it seems that xml support is broken somehow in 5.0.
This is a problem of 5.0 b2 and b3,
but it works ok with 4.3
Reproduce code:
---------------
php code:
<?
require_once 'Config.php';
$conf = new Config();
$tree = $conf->parseConfig('h.xml', 'xml');
?>
h.html
<?xml version="1.0" ?>
<network>
</network>
Expected result:
----------------
nothing
Actual result:
--------------
Warning: xml_parse(): Unable to call handler startHandler() in /usr/local/lib/php/XML/Parser.php on line 265
Warning: xml_parse(): Unable to call handler cdataHandler() in /usr/local/lib/php/XML/Parser.php on line 265
Warning: xml_parse(): Unable to call handler endHandler() in /usr/local/lib/php/XML/Parser.php on line 265
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
<? require_once 'Config.php'; $conf = new Config(); $tree = $conf->parseConfig('h.xml', 'xml'); ?> but you need xml file h.xml <?xml version="1.0" ?> <network> </network>