php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26704 xml_parse problems
Submitted: 2003-12-23 04:20 UTC Modified: 2004-01-20 04:38 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: matjaz dot ostroversnik at ztm dot si Assigned:
Status: No Feedback Package: XML related
PHP Version: 5CVS OS: linux 2.4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-23 11:29 UTC] iliaa@php.net
What is config.php?
 [2003-12-24 02:19 UTC] matjaz dot ostroversnik at ztm dot si
Config.php is PEAR's Config.
 [2004-01-01 21:06 UTC] sniper@php.net
What was the configure line used to configure php?

 [2004-01-05 02:28 UTC] matjaz dot ostroversnik at ztm dot si
./configure \
 --with-apxs2=/usr/sbin/apxs \
 --with-pear \
 --enable-dbase \
 --with-openssl=/usr/local/ssl \
 --enable-track-vars \
 --enable-inline-optimization \
 --with-layout=RedHat \
 --with-gd \
 --with-png \
 --with-ttf \
 --enable-gd-native-ttf \
 --with-mm \
 --enable-sockets \
 --with-zlib \
 --with-iconv \
 --with-pgsql \
 --without-mysql \
 --enable-bcmath \
 --enable-ftp  \
 --enable-mailparse  \
 --with-imap \
 --with-kerberos  \
 --with-imap-ssl=/usr/local/ssl \
 --with-xmlrpc \
 --with-readline \
 --enable-overload \
 --enable-calendar \
 --with-curl \
 --enable-socket \
 --with-dom
 [2004-01-13 14:50 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


 [2004-01-14 03:24 UTC] matjaz dot ostroversnik at ztm dot si
<?
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>
 [2004-01-14 10:47 UTC] sniper@php.net
Please read the feedback request one more time.
Then come up with a _self-contained_ script. (One that does NOT require any PEAR crap)


 [2004-01-20 04:38 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 22:01:27 2019 UTC