#18395 [Opn->Ver]: DOMXML crash on removing previously created attributes
| From: | chregu@php.net | Date: | Wed, 14 Aug 2002 07:10:00 +0000 |
| Subject: | #18395 [Opn->Ver]: DOMXML crash on removing previously created attributes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16736@lists.php.net to get a copy of this message | ||
ID: 18395
Updated by: chregu@php.net
Reported By: flying@dom.natm.ru
-Status: Open
+Status: Verified
Bug Type: DOM XML related
Operating System: Windows 2000
PHP Version: 4CVS-2002-07-17
New Comment:
I can reproduce it on Linux. I'll try to have a look at it soon.
chregu
Previous Comments:
------------------------------------------------------------------------
[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