#28483 [NEW]: domxml elements unique ids changes when you call a method

From: Date: Sat, 22 May 2004 05:39:12 +0000
Subject: #28483 [NEW]: domxml elements unique ids changes when you call a method
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59870@lists.php.net to get a copy of this message
From: vpupkin at comcast dot net Operating system: Linux Fedora Core 1 PHP version: 4.3.4 PHP Bug Type: DOM XML related Bug description: domxml elements unique ids changes when you call a method Description: ------------ a domxml element has "0" field where its unique id lays. When you call a method, those ids change, below is the code to reproduce this. I used this XML string: <?xml version="1.0"?> <test> <row> <col>a</col> <col>b</col> <col>b2</col> </row> <col>c</col> <col>d</col> </test> Reproduce code: --------------- $doc = domxml_open_file('test.xml'); //$element = $doc->first_child(); $xp = $doc->xpath_new_context(); $res = $xp->xpath_eval('//col', $xp); print_r($res->nodeset); Expected result: ---------------- comment/uncomment the 3rd line you'll see that ids change -- Edit bug report at http://bugs.php.net/?id=28483&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28483&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28483&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28483&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28483&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28483&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28483&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28483&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28483&r=support Expected behavior: http://bugs.php.net/fix.php?id=28483&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28483&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28483&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28483&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28483&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28483&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28483&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28483&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28483&r=float

« previous php.bugs (#59870) next »