ID:               31447
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpbug at ebt dot cjb dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         DOM XML related
 Operating System: Red Hat Linux 7.3
 PHP Version:      4CVS-2004-01-09
 New Comment:

I cant reproduce this either. Your backtrace shows that the correct
vals are being passed setting up the libxml parser, so cant explain why
this is happening unless libxml is somehow corrupting the parser context
_private. Can you try running:
$dom = domxml_open_file("test.xml", 0 , $err);
var_dump($err);
and see if it also segfaults.

Are you using libxml rpms from xmlsoft.org or did you compile your own
libxml (if self compiled what flags did you configure it with?)


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

[2005-01-08 17:27:14] phpbug at ebt dot cjb dot net

My libxml2 is version 2.6.16

I have also realized that the problem is not just entities, it's with
any XML error at all. If I incorrectly leave a tag open or a quote or
anything that makes DOMXML display an error, PHP segfaults and the
backtrace shows the error that should have been displayed.

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

[2005-01-08 12:58:00] [EMAIL PROTECTED]

I can not reproduce this. What libxml2 version do you have
installed..?


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

[2005-01-07 23:48:08] phpbug at ebt dot cjb dot net

Same result with the latest snapshot.

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

[2005-01-07 23:31:58] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

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

[2005-01-07 23:24:47] phpbug at ebt dot cjb dot net

Forgot: I believe the expected result should mention an error with the
entity, not simply return without an error. However, gracefully
displaying an error is better than a segfault.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31447

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

Reply via email to