From: arashaga at gmail dot com Operating system: xp PHP version: 5.3.1 PHP Bug Type: Scripting Engine problem Bug description: SimpleXml xpath doesn't return a ligitimate xpath query
Description: ------------ in the example below I get the xpath query result in Xpath qury tools like Xpath spy but when it's run in PHP I don't get anything. it shoud output the storename but it doesn't. Reproduce code: --------------- //xml file (partially) <Item> <ItemID>341396747871</ItemID> â <ViewItemURLForNaturalSearch> http://product.half.ebay.com/GMAT-Quantitative-Review-Paperback-2005_W0QQprZ48636818QQtgZvidetailsQQitemZ341396747871 </ViewItemURLForNaturalSearch> <Quantity>1</Quantity> â <Seller> <FeedbackScore>32</FeedbackScore> <PositiveFeedbackPercent>100.0</PositiveFeedbackPercent> </Seller> <CurrentPrice currencyID="USD">1.98</CurrentPrice> â <Storefront> â <StoreURL> http://shops.half.ebay.com/rogerlee14_W0QQsellerZrogerlee14 </StoreURL> <StoreName>rogerlee14</StoreName> </Storefront> <Country>US</Country> <HalfItemCondition>BrandNew</HalfItemCondition> â <SellerComments> Brand new, never used. No markings at all. Ships fast! </SellerComments> </Item> the query is //CurrentPrice[.=1.98]/parent::Item/Storefront/StoreName Expected result: ---------------- rogerlee14 Actual result: -------------- boolean(false) -- Edit bug report at http://bugs.php.net/?id=50951&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50951&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50951&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50951&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50951&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50951&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50951&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50951&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50951&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50951&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50951&r=support Expected behavior: http://bugs.php.net/fix.php?id=50951&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50951&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50951&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50951&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50951&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50951&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50951&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50951&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50951&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50951&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50951&r=mysqlcfg
