From a2a4dcbc7d61939cf85fe7efc171fbcb25060329 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Tue, 7 Dec 2010 09:03:56 +0000 Subject: [PATCH] Fix doc bug #53486 (DOMXPath::query can return false). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306049 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/dom/domxpath/evaluate.xml | 5 +++++ reference/dom/domxpath/query.xml | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/reference/dom/domxpath/evaluate.xml b/reference/dom/domxpath/evaluate.xml index 2293ac9a11..786cdc36b3 100644 --- a/reference/dom/domxpath/evaluate.xml +++ b/reference/dom/domxpath/evaluate.xml @@ -60,6 +60,11 @@ Returns a typed result if possible or a DOMNodeList containing all nodes matching the given XPath expression. + + If the expression is malformed or the + contextnode is invalid, + DOMXPath::evaluate returns &false;. + &reftitle.changelog; diff --git a/reference/dom/domxpath/query.xml b/reference/dom/domxpath/query.xml index 2495adff8d..ab4e199f8f 100644 --- a/reference/dom/domxpath/query.xml +++ b/reference/dom/domxpath/query.xml @@ -56,9 +56,15 @@ &reftitle.returnvalues; - Returns a DOMNodeList containing all nodes matching - the given XPath expression. Any expression which do - not return nodes will return an empty DOMNodeList. + Returns a DOMNodeList containing all nodes matching + the given XPath expression. Any expression which + does not return nodes will return an empty + DOMNodeList. + + + If the expression is malformed or the + contextnode is invalid, + DOMXPath::query returns &false;.