From 8d198d67add281466ec177e68f8cca971198204d Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 17 Sep 2026 19:14:55 -0700 Subject: [PATCH 1/2] `XSLTProcessor::registerPHPFunctions()`: switch to `` for docbook-cs --- .../xsl/xsltprocessor/registerphpfunctions.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reference/xsl/xsltprocessor/registerphpfunctions.xml b/reference/xsl/xsltprocessor/registerphpfunctions.xml index adb53a29ab41..a90df0c8097e 100644 --- a/reference/xsl/xsltprocessor/registerphpfunctions.xml +++ b/reference/xsl/xsltprocessor/registerphpfunctions.xml @@ -11,10 +11,10 @@ public voidXSLTProcessor::registerPHPFunctions arraystringnullfunctions&null; - + This method enables the ability to use PHP functions as XSLT functions within XSL stylesheets. - + &reftitle.parameters; @@ -23,17 +23,17 @@ functions - + Use this parameter to only allow certain functions to be called from XSLT. - - + + This parameter can be one of the following: a string (a function name), an indexed array of function names, or an associative array with keys being the function name and the associated value being the callable. - + @@ -44,9 +44,9 @@ &reftitle.returnvalues; - + &return.void; - + From 47c0b838d419d1f84e8ff984eba729d5398a8cb7 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 17 Sep 2026 18:56:51 -0700 Subject: [PATCH 2/2] `XSLTProcessor::registerPHPFunctions()`: document and warn against `null` --- reference/xsl/xsltprocessor/registerphpfunctions.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reference/xsl/xsltprocessor/registerphpfunctions.xml b/reference/xsl/xsltprocessor/registerphpfunctions.xml index a90df0c8097e..c04d5b46239c 100644 --- a/reference/xsl/xsltprocessor/registerphpfunctions.xml +++ b/reference/xsl/xsltprocessor/registerphpfunctions.xml @@ -15,6 +15,13 @@ This method enables the ability to use PHP functions as XSLT functions within XSL stylesheets. + + + functions defaults to &null;, meaning that by + default calling this method enables access to all + PHP functions. + + &reftitle.parameters; @@ -29,6 +36,7 @@ This parameter can be one of the following: + &null; to indicate that all functions are allowed, a string (a function name), an indexed array of function names, or an associative array with keys being the function name