Bug #48601 [Com]: xpath() returns FALSE for legitimate query

From: Date: Thu, 22 Dec 2011 08:56:13 +0000
Subject: Bug #48601 [Com]: xpath() returns FALSE for legitimate query
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166042@lists.php.net to get a copy of this message
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] chregu@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] chregu@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] stas@php.net Looks like it still happens for me - the unit test fails and the function returns false. ------------------------------------------------------------------------ [2010-05-05 13:42:16] rrichards@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] rrichards@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

« previous php.bugs (#166042) next »