ID: 16888 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: DOM XML related Operating System: Windows XP PHP Version: 4.2.0 New Comment:
Confirmed under windows 2000 server running as CGI with following combinations: PHP 4.1.1 + libxml2 2.4.21 - works well PHP 4.2.0 + libxml2 2.4.21 - crash PHP 4.2.1 + libxml2 2.4.9 - crash Unfortunatelly latest PHP version - 4.2.1 have been build with libxml2 compiled as static library, so i can't test it with latest libxml2. So it is not a problem of libxml2, but something into DOM XML module itself. PHP crashes into final stage, when script execution itself is completed (and even function, registered as shutdown function have been executed). Previous Comments: ------------------------------------------------------------------------ [2002-05-15 08:57:08] [EMAIL PROTECTED] I would blame libxml2 :) Do you have the latest libxml2 dll? (available anywhere from http://www.xmlsoft.org). Can you check with that? chregu ------------------------------------------------------------------------ [2002-05-14 17:03:16] [EMAIL PROTECTED] Same error still occurs with PHP 4.2.1 Version ------------------------------------------------------------------------ [2002-05-09 18:00:22] [EMAIL PROTECTED] Checked under Win98 and crashes if too many nodes are created. This is confirmed. ------------------------------------------------------------------------ [2002-04-28 17:37:34] [EMAIL PROTECTED] Seems to be an OS-specific problem. It is not reproducable under linux. Even with adding 100'000 nodes :) Can someone with access to windows please check that? chregu ------------------------------------------------------------------------ [2002-04-28 15:37:25] [EMAIL PROTECTED] System: Apache/1.3.24 PHP running as SAPI-module (Binary from php.net) simple script, which causes segfault <? $doc = new_xmldoc( "1.0" ); $root = $doc->add_root("document"); for($i = 1; $i < 1000; $i++){ $element = $doc->create_element("element"); $element->set_content("content ".$i); $root->append_child($element); } $xml = $doc->dumpmem(); echo htmlspecialchars($xml); ?> Description: the content is shown shortly in the browser, but apache causes a segfault in module php4ts.dll at offset 00096057 and finally a 404 page is displayed. This code causes no problems with PHP 4.1.2. When you try to create only 100 elements in this loop, it runs without any seg-faults. For complex xmldocuments this bug makes it impossible to use domxml with php 4.2. Modules: php_domxml, php_xslt, php_gd und mysql ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16888&edit=1