]> granicus.if.org Git - php/commit
simplexml->query returns empty array if no nodes were found
authorChristian Stocker <chregu@php.net>
Wed, 31 Aug 2011 11:44:22 +0000 (11:44 +0000)
committerChristian Stocker <chregu@php.net>
Wed, 31 Aug 2011 11:44:22 +0000 (11:44 +0000)
commit13fa5542f70d027e8303e5d0c320fe457c5fc7b2
treea5d7db67ea90d3dc62edeea08d3abf53c88e2835
parent69c84fde82c01847bb47000f1cb1d6b4965f1601
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
ext/simplexml/simplexml.c
ext/simplexml/tests/008.phpt