]> 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)
commit2ea8e386153bdd1769241f8fef13ebbf63651385
treeeceeb83a5856bd0de870ffda6ebc1b38344a7189
parent9dd75489fe7c83548c79fc210188e8e3069ff378
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