From: fgarcia at uef dot es Operating system: Windows NT PHP version: 4.3.2RC1 PHP Bug Type: DOM XML related Bug description: PHP crashes when exiting (long XML doc)
Runnig the following script (php -q domtest.php), you will get a Windows System Error when the script ends. The Error depends on the internal size of the xml document. If the 'for' is of 100 iterations, the error no happen. (I'm using the Windows compilation downloaded from php.net. Same problem in version 4.3.0) domtest.php: <? if (!extension_loaded("php_domxml")) @dl("php_domxml.dll"); $domR=domxml_new_doc('1.0'); $nItinerario = $domR->create_element("itinerario"); for ($i=0; $i<400; $i++) { $n=$domR->create_element("HH"); $n->append_child($domR->create_text_node('long long long long long long long long long long long long')); $nItinerario->append_child($n); } $domR->append_child($nItinerario); //$xml=$domR->dump_mem(); //echo $xml; ?> -- Edit bug report at http://bugs.php.net/?id=22774&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22774&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22774&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22774&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22774&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22774&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22774&r=support Expected behavior: http://bugs.php.net/fix.php?id=22774&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22774&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22774&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22774&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22774&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22774&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22774&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22774&r=gnused