diff --git a/reference/dom/domxpath/evaluate.xml b/reference/dom/domxpath/evaluate.xml index 1f8a240bd94f..3bb738c0b789 100644 --- a/reference/dom/domxpath/evaluate.xml +++ b/reference/dom/domxpath/evaluate.xml @@ -1,6 +1,6 @@ - + DOMXPath::evaluate @@ -46,6 +46,7 @@ + &reftitle.returnvalues; diff --git a/reference/dom/domxpath/query.xml b/reference/dom/domxpath/query.xml index 071d1e9685c9..f6640d97af6e 100644 --- a/reference/dom/domxpath/query.xml +++ b/reference/dom/domxpath/query.xml @@ -59,6 +59,35 @@ DOMXPath::query returns &false;. + + &reftitle.errors; + + The following errors are possible when using an expression that invokes + PHP callbacks. + + + + + Throws an Error if + a PHP callback is invoked but there were no callbacks registered, + or if the named callback was not registered. + + + + + Throws a TypeError if + the php:function syntax is used and the handler + name is not a string. + + + + + Throws an Error if + a non-DOM object was returned from a callback. + + + + &reftitle.examples; diff --git a/reference/dom/domxpath/registerphpfunctionns.xml b/reference/dom/domxpath/registerphpfunctionns.xml index 238a8e4333a2..0643d6ff5cdd 100644 --- a/reference/dom/domxpath/registerphpfunctionns.xml +++ b/reference/dom/domxpath/registerphpfunctionns.xml @@ -1,6 +1,6 @@ - + DOMXPath::registerPhpFunctionNS Register a PHP functions as namespaced XPath function @@ -53,6 +53,8 @@ + + &reftitle.returnvalues; diff --git a/reference/dom/domxpath/registerphpfunctions.xml b/reference/dom/domxpath/registerphpfunctions.xml index 997e954a98f1..ea9f5dbb22ff 100644 --- a/reference/dom/domxpath/registerphpfunctions.xml +++ b/reference/dom/domxpath/registerphpfunctions.xml @@ -48,6 +48,25 @@ + + &reftitle.errors; + + + + Throws a ValueError if + a callback name is not valid. + + + &dom.errors.compliant.common; + + + Throws a TypeError if + a given callback is not callable. + + + + + &reftitle.changelog; @@ -59,6 +78,15 @@ + + 8.4.0 + + Invalid callback names now throws a + ValueError. + Passing a non-callable entry now throws a + TypeError. + + 8.4.0 diff --git a/reference/xsl/xsltprocessor/registerphpfunctionns.xml b/reference/xsl/xsltprocessor/registerphpfunctionns.xml index 89f9334f1cc3..df832b453c22 100644 --- a/reference/xsl/xsltprocessor/registerphpfunctionns.xml +++ b/reference/xsl/xsltprocessor/registerphpfunctionns.xml @@ -1,6 +1,6 @@ - + XSLTProcessor::registerPHPFunctionNS Register a PHP function as namespaced XSLT function @@ -50,6 +50,8 @@ + + &reftitle.returnvalues; diff --git a/reference/xsl/xsltprocessor/registerphpfunctions.xml b/reference/xsl/xsltprocessor/registerphpfunctions.xml index 2b89bf17748d..adb53a29ab41 100644 --- a/reference/xsl/xsltprocessor/registerphpfunctions.xml +++ b/reference/xsl/xsltprocessor/registerphpfunctions.xml @@ -1,6 +1,6 @@ - + XSLTProcessor::registerPHPFunctions Enables the ability to use PHP functions as XSLT functions @@ -40,6 +40,8 @@ + + &reftitle.returnvalues; @@ -58,6 +60,7 @@ + 8.4.0 diff --git a/reference/xsl/xsltprocessor/transformtodoc.xml b/reference/xsl/xsltprocessor/transformtodoc.xml index 61839e3063b9..655db25fa642 100644 --- a/reference/xsl/xsltprocessor/transformtodoc.xml +++ b/reference/xsl/xsltprocessor/transformtodoc.xml @@ -1,6 +1,6 @@ - + XSLTProcessor::transformToDoc Transform to a document @@ -45,6 +45,9 @@ + + + &reftitle.returnvalues; @@ -52,27 +55,7 @@ - - &reftitle.changelog; - - - - - &Version; - &Description; - - - - - 8.4.0 - - Added support for Dom\Document. - - - - - - + &reftitle.examples; diff --git a/reference/xsl/xsltprocessor/transformtouri.xml b/reference/xsl/xsltprocessor/transformtouri.xml index 550daecad4a4..71174c747458 100644 --- a/reference/xsl/xsltprocessor/transformtouri.xml +++ b/reference/xsl/xsltprocessor/transformtouri.xml @@ -1,6 +1,6 @@ - + XSLTProcessor::transformToUri Transform to URI @@ -42,6 +42,8 @@ + + &reftitle.returnvalues; @@ -49,7 +51,7 @@ - + &reftitle.changelog; @@ -60,6 +62,13 @@ + + 8.4.0 + + Now throws an Error if the callback + cannot be invoked, instead of emitting a warning. + + 8.4.0 diff --git a/reference/xsl/xsltprocessor/transformtoxml.xml b/reference/xsl/xsltprocessor/transformtoxml.xml index 94a7c830e4d1..798380e55511 100644 --- a/reference/xsl/xsltprocessor/transformtoxml.xml +++ b/reference/xsl/xsltprocessor/transformtoxml.xml @@ -21,6 +21,9 @@ + + + &reftitle.returnvalues; @@ -28,27 +31,7 @@ - - &reftitle.changelog; - - - - - &Version; - &Description; - - - - - 8.4.0 - - Added support for Dom\Document. - - - - - - + &reftitle.examples;