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

Reply via email to