ID: 22774 Updated by: [EMAIL PROTECTED] Reported By: fgarcia at uef dot es -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: Windows 2000 PHP Version: 4.3.2RC1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Should be fixed in the stable release, as well. Previous Comments: ------------------------------------------------------------------------ [2003-03-27 11:24:14] rrichards at digarc dot com Finally able to reproduce this using a simplified script: <?php if (!extension_loaded("domxml")) @dl("php_domxml.dll"); $domR=domxml_new_doc('1.0'); $nItinerario = $domR->create_element("itinerario"); $domR->append_child($nItinerario); ?> If the extension is NOT loaded via the php.ini file, upon shutdown, php_free_xml_doc is called first and then php_free_xml_node for the created element is called which causes the blow up. If read from the ini file, php_free_xml_node is called first and then php_free_xml_doc. Seems to be some issue with the external loading of the extension. ------------------------------------------------------------------------ [2003-03-24 05:02:02] rrichards at digarc dot com Am not able to reproduce in Win 2K. Ran it for 10,000 and 20,000 iterations without a problem. Finally ran it for 1,000,000 iterations until the machine ran out of memory (was over a Gig of used memory at that point). Once getting a fatal emalloc error memory returned back to normal (exact amount used prior to running). Tested against latest cvs code as well as a php4-3.0-dev build from jun 2002. using libxml2-2.4.22 ------------------------------------------------------------------------ [2003-03-21 05:43:43] [EMAIL PROTECTED] looks like a mem-leak linux normally doesn't segfault on memleaks. Windows does... that's the difference ;) I try to look at it ------------------------------------------------------------------------ [2003-03-21 04:31:56] fgarcia at uef dot es If you see DrWatson output there is the function zend_timeout I don't know if that matchs something. ------------------------------------------------------------------------ [2003-03-21 04:28:48] fgarcia at uef dot es I've updated to 4.3.2-RC1 version, and updated php4ts.dll on winnt/system Same bug. php -v: PHP 4.3.2-RC (cgi-fcgi), Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22774 -- Edit this bug report at http://bugs.php.net/?id=22774&edit=1