#37622 [NEW]: Odd DOMXPath->query behaviour

From: Date: Mon, 29 May 2006 08:47:11 +0000
Subject: #37622 [NEW]: Odd DOMXPath->query behaviour
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97718@lists.php.net to get a copy of this message
From: nickm at tbms dot ru Operating system: Windows XP SP2 PHP version: 5.1.4 PHP Bug Type: DOM XML related Bug description: Odd DOMXPath->query behaviour Description: ------------ I've tried to execute the "/gesmes:Envelope/:Cube/:Cube/:Cube[@currency='USD']" XPath instruction via the DOMXPath->query method on the "http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml" but I got neither parse error nor the DOMNodeList. The result is simply empty. I validated my istruction here: "http://www.activsoftware.com/xml/xpath/" Аnd it get exactly what I want from the XML document. Reproduce code: --------------- $from = "USD"; $result = $xPath->query("/gesmes:Envelope/:Cube/:Cube/:Cube[@currency='" . strtoupper($from) . "']"); //$result is EMPTY! -- Edit bug report at http://bugs.php.net/?id=37622&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37622&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37622&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37622&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37622&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37622&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37622&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37622&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37622&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37622&r=support Expected behavior: http://bugs.php.net/fix.php?id=37622&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37622&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37622&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37622&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37622&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37622&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37622&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37622&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37622&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37622&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37622&r=mysqlcfg

« previous php.bugs (#97718) next »