Edit report at https://bugs.php.net/bug.php?id=48601&edit=1
ID: 48601 Comment by: me at ktamura dot com Reported by: theultramage at gmail dot com Summary: xpath() returns FALSE for legitimate query Status: Re-Opened 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: I believe this has indeed been fixed. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2010-05-05 13:42:16] rricha...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2010-05-05 13:40:13] rricha...@php.net Automatic comment from SVN on behalf of rrichards Revision: http://svn.php.net/viewvc/?view=revision&revision=299016 Log: fix bug #48601 (xpath() returns FALSE for legitimate query) add test ------------------------------------------------------------------------ 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