Edit report at https://bugs.php.net/bug.php?id=48601&edit=1

 ID:                 48601
 Comment by:         johnkary at gmail dot com
 Reported by:        theultramage at gmail dot com
 Summary:            xpath() returns FALSE for legitimate query
 Status:             Closed
 Type:               Bug
 Package:            SimpleXML related
 Operating System:   Windows Vista
 PHP Version:        5.4SVN
 Assigned To:        rrichards
 Block user comment: N
 Private report:     N

 New Comment:

It's not clear exactly which 5.3 release this bug was actually fixed in. I 
believe 
I am still encountering this bug in 5.3.8 (on my production server) but do not 
encounter it with the same code in 5.3.14 (on my dev machine). This was made 
evident from actual PHP code I wrote using an XPath query. I have not run the 
core 
unit tests to confirm this.

Just adding notes here about affected versions for those that come across this 
bug 
report in the future.


Previous Comments:
------------------------------------------------------------------------
[2012-07-08 11:58:12] theultramage at gmail dot com

Yes, at least with current versions (5.4.3 / 5.3.14) this issue no longer 
occurs.

------------------------------------------------------------------------
[2011-12-22 08:56:13] me at ktamura dot com

I believe this has indeed been fixed.

------------------------------------------------------------------------
[2011-09-01 13:42:34] chr...@php.net

Automatic comment from SVN on behalf of chregu
Revision: http://svn.php.net/viewvc/?view=revision&revision=315990
Log: Merge from Trunk
simplexml->query returns empty array if no nodes were found
and false if libxml thinks the xpath-expression was invalid.
Behaves now the same like DomXPath and fixes Bug #48601
Adjusted a test to reflect that change

------------------------------------------------------------------------
[2011-08-31 11:44:11] chr...@php.net

Automatic comment from SVN on behalf of chregu
Revision: http://svn.php.net/viewvc/?view=revision&revision=315883
Log: simplexml->query returns empty array if no nodes were found
and false if libxml thinks the xpath-expression was invalid.
Behaves now the same like DomXPath and fixes Bug #48601
Adjusted a test to reflect that change

------------------------------------------------------------------------
[2011-08-01 03:21:26] s...@php.net

Looks like it still happens for me - the unit test fails and the function 
returns 
false.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=48601


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=48601&edit=1

Reply via email to