php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53486 DOMXPath::query can return false
Submitted: 2010-12-06 16:31 UTC Modified: 2010-12-07 10:04 UTC
From: david dot bruant at monextel dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.2.14 OS: -
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david dot bruant at monextel dot com
New email:
PHP Version: OS:

 

 [2010-12-06 16:31 UTC] 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)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-06 17:29 UTC] 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-07 04:10 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2010-12-07 10:03 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=306049
Log: Fix doc bug #53486 (DOMXPath::query can return false).
 [2010-12-07 10:04 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2010-12-07 10:04 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 12:01:31 2024 UTC