Re: DOMXPath / XSLTProcessor function callbacks

From: Date: Sat, 14 Oct 2023 10:30:01 +0000
Subject: Re: DOMXPath / XSLTProcessor function callbacks
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-121306@lists.php.net to get a copy of this message
Hi On 10/13/23 00:39, Niels Dossche wrote:
Please let me know your thoughts.
What does calling ->registerPHPFunctions() do when it's called more than once? Will the existing allow-list be overwritten or amended? i.e. $xpath->registerPHPFunctions([ 'strtoupper', ]); $xpath->registerPHPFunctions([ 'ucfirst', ]); will I be able to: (a) Call ucfirst(), but not strtoupper() (b) Call both Best regards Tim Düsterhus

« previous php.internals (#121306) next »