ID: 21477
Updated by: iliaa@php.net
Reported By: gk@proliberty.com
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: linux; kernel 2.4.18
PHP Version: 4.3.0
New Comment:
Cannot dublicate the crash using latest PHP snapshot. If you still
experience the problem could you please provide a backtrace.
Previous Comments:
------------------------------------------------------------------------
[2003-01-06 18:33:33] gk@proliberty.com
<?php
// this text causes crash:
$with_attr=<<<eot
<node attr="test"><test>hi</test>
</node>
eot;
// this text avoids crash:
$without_attr=<<<eot
<node><test>hi</test>
</node>
eot;
// using $with_attr causes crash:
$xml=$with_attr;
// using $without_attr doesn't crash:
// $xml=$without_attr;
$doc = domxml_open_mem($xml);
$root=$doc->root();
// the following dump_node() call causes crash:
$nodeContent =$root->dump_node($root);
// the following dump_mem() call succeeds, using $with_attr:
//$nodeContent =$doc->dump_mem();
echo htmlentities($nodeContent);
// php appears to have crashed; the following text is not printed:
echo "hi";
?>
I am using PHP 4.3.0 configured as:
./configure --with-dom --with-zlib-dir=/usr/include
--with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs
--with-xml --enable-track-vars
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21477&edit=1