#18395 [Ver->Csd]: DOMXML crash on removing previously created attributes

From: Date: Wed, 14 Aug 2002 08:28:04 +0000
Subject: #18395 [Ver->Csd]: DOMXML crash on removing previously created attributes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16741@lists.php.net to get a copy of this message
ID: 18395 Updated by: chregu@php.net Reported By: flying@dom.natm.ru -Status: Verified +Status: Closed Bug Type: DOM XML related Operating System: Windows 2000 PHP Version: 4CVS-2002-07-17 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-08-14 03:10:00] chregu@php.net I can reproduce it on Linux. I'll try to have a look at it soon. chregu ------------------------------------------------------------------------ [2002-07-17 13:52:57] flying@dom.natm.ru DOMXML module crashes on call remove_attribute() method for a node, which was previously created by for example set_attribute(). Take a look at the following example: <?php $xml = xmldoc('<root a1="b1"/>'); $root = $xml->root(); $root->set_attribute('a2','b2'); $root->remove_attribute('a1'); $root->remove_attribute('a2'); echo htmlspecialchars($xml->dumpmem()); ?> Removing "a1" attribute is ok because it was defined in XML document on parse time. But removing of "a2" attribute causes PHP to crash. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18395&edit=1

« previous php.bugs (#16741) next »