svn: /phpdoc/en/trunk/reference/dom/domxpath/ evaluate.xml query.xml
| From: | Adam Harvey | Date: | Tue, 07 Dec 2010 09:03:56 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/dom/domxpath/ evaluate.xml query.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7498@lists.php.net to get a copy of this message | ||
aharvey Tue, 07 Dec 2010 09:03:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306049
Log:
Fix doc bug #53486 (DOMXPath::query can return false).
Bug: http://bugs.php.net/53486 (Assigned) DOMXPath::query
can return false
Changed paths:
U phpdoc/en/trunk/reference/dom/domxpath/evaluate.xml
U phpdoc/en/trunk/reference/dom/domxpath/query.xml
Modified: phpdoc/en/trunk/reference/dom/domxpath/evaluate.xml
===================================================================
--- phpdoc/en/trunk/reference/dom/domxpath/evaluate.xml 2010-12-07 07:52:02 UTC (rev 306048)
+++ phpdoc/en/trunk/reference/dom/domxpath/evaluate.xml 2010-12-07 09:03:56 UTC (rev 306049)
@@ -60,6 +60,11 @@
Returns a typed result if possible or a <classname>DOMNodeList</classname>
containing all nodes matching the given XPath <parameter>expression</parameter>.
</para>
+ <para>
+ If the <parameter>expression</parameter> is malformed or the
+ <parameter>contextnode</parameter> is invalid,
+ <methodname>DOMXPath::evaluate</methodname> returns &false;.
+ </para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
Modified: phpdoc/en/trunk/reference/dom/domxpath/query.xml
===================================================================
--- phpdoc/en/trunk/reference/dom/domxpath/query.xml 2010-12-07 07:52:02 UTC (rev 306048)
+++ phpdoc/en/trunk/reference/dom/domxpath/query.xml 2010-12-07 09:03:56 UTC (rev 306049)
@@ -56,10 +56,16 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns a <classname>DOMNodeList</classname> containing all nodes matching
- the given XPath <parameter>expression</parameter>. Any expression which do
- not return nodes will return an empty <classname>DOMNodeList</classname>.
+ Returns a <classname>DOMNodeList</classname> containing all nodes matching
+ the given XPath <parameter>expression</parameter>. Any expression which
+ does not return nodes will return an empty
+ <classname>DOMNodeList</classname>.
</para>
+ <para>
+ If the <parameter>expression</parameter> is malformed or the
+ <parameter>contextnode</parameter> is invalid,
+ <methodname>DOMXPath::query</methodname> returns &false;.
+ </para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;