Bug #17031: Results of "xpath_eval(...)" are not right in all cases

From: Date: Mon, 06 May 2002 07:52:30 +0000
Subject: Bug #17031: Results of "xpath_eval(...)" are not right in all cases
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7002@lists.php.net to get a copy of this message
From: ggabriel@ets-online.de Operating system: Win2000 PHP version: 4.2.0 PHP Bug Type: DOM XML related Bug description: Results of "xpath_eval(...)" are not right in all cases For the following sample: <&lt;foo&gt;> <&lt;oops&gt;> some data <&lt;/oops&gt;> <&lt;/foo&gt;> the following problem occured: $expr1 = "//foo"; $expr2 = "//*[name()='foo']"; $path1 = xpath_eval($context, $expr1); # no result ??? WRONG $path2 = xpath_eval($context, $expr2); # one result !!! OK The two expressions "//foo" and "//*[name()='foo']" should lead to the same result, but they do not. I have turned Off all magic_quotes in php.ini . It's to mention, that I use the PHP 4.2.0 Extensions for DOM XML support in my PHP 4.1.0 Version. -- Edit bug report at http://bugs.php.net/?id=17031&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17031&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17031&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17031&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17031&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17031&r=support Expected behavior: http://bugs.php.net/fix.php?id=17031&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17031&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17031&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17031&r=globals

« previous php.bugs (#7002) next »