Doc #53486 [Opn->Asn]: DOMXPath::query can return false
| From: | aharvey@php.net | Date: | Tue, 07 Dec 2010 03:10:23 +0000 |
| Subject: | Doc #53486 [Opn->Asn]: DOMXPath::query can return false | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5637@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53486&edit=1
ID: 53486
Updated by: aharvey@php.net
Reported by: david dot bruant at monextel dot com
Summary: DOMXPath::query can return false
-Status: Open
+Status: Assigned
Type: Documentation Problem
Package: Documentation problem
Operating System: -
PHP Version: 5.2.14
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2010-12-06 17:29:44] david dot bruant at monextel dot com
To reproduce :
- Init a DOMXPath query and load an HTML
- give it the query '/html/body/a@href'
This query isn't a valid XPath query ('/html/body/a/@href' or
'/html/body/a[@href]' would be)
------------------------------------------------------------------------
[2010-12-06 16:31:05] david dot bruant at monextel dot com
Description:
------------
---
From manual page: http://www.php.net/domxpath.query#Return Values
---
As opposed to what is written, this function can return false (probably
on error, there is a need for further investigation)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53486&edit=1