Bug #18395: DOMXML crash on removing previously created attributes
| From: | flying at dom dot natm dot ru | Date: | Wed, 17 Jul 2002 17:52:57 +0000 |
| Subject: | Bug #18395: DOMXML crash on removing previously created attributes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14431@lists.php.net to get a copy of this message | ||
From: flying@dom.natm.ru
Operating system: Windows 2000
PHP version: 4CVS-2002-07-17
PHP Bug Type: DOM XML related
Bug description: DOMXML crash on removing previously created attributes
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 bug report at http://bugs.php.net/?id=18395&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18395&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18395&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18395&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18395&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18395&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18395&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18395&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18395&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18395&r=globals