Doc #53486 [Opn]: DOMXPath::query can return false

From: Date: Mon, 06 Dec 2010 16:29:45 +0000
Subject: Doc #53486 [Opn]: DOMXPath::query can return false
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5629@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 User updated by: david dot bruant at monextel dot com Reported by: david dot bruant at monextel dot com Summary: DOMXPath::query can return false Status: Open Type: Documentation Problem Package: Documentation problem Operating System: - PHP Version: 5.2.14 Block user comment: N Private report: N New Comment: 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) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#5629) next »