ID: 21477 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Bogus Bug Type: DOM XML related Operating System: linux; kernel 2.4.18 PHP Version: 4.3.0 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. On aftger analysis of the bug I must conclude it is a bug in libxml2 (possibly old version of it) and not a bug in PHP. Previous Comments: ------------------------------------------------------------------------ [2003-01-06 20:58:59] [EMAIL PROTECTED] Cannot dublicate the crash using latest PHP snapshot. If you still experience the problem could you please provide a backtrace. ------------------------------------------------------------------------ [2003-01-06 18:33:33] [EMAIL PROTECTED] <?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