#22774 [Opn]: PHP crashes when exiting (long XML doc)

From: Date: Tue, 18 Mar 2003 22:21:20 +0000
Subject: #22774 [Opn]: PHP crashes when exiting (long XML doc)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35874@lists.php.net to get a copy of this message
 ID:               22774
 User updated by:  fgarcia at uef dot es
 Reported By:      fgarcia at uef dot es
 Status:           Open
 Bug Type:         DOM XML related
-Operating System: Windows NT
+Operating System: Windows 2000
 PHP Version:      4.3.2RC1
 New Comment:

Sorry, on Windows 2000


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

[2003-03-18 16:19:37] fgarcia at uef dot es

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 this bug report at http://bugs.php.net/?id=22774&edit=1



Thread (16 messages)

« previous php.bugs (#35874) next »