No way to unset registered PHP functions in XSLTProcessor::registerPHPFunctions()
| From: | Christian Weiske | Date: | Sun, 10 May 2009 16:49:30 +0000 |
| Subject: | No way to unset registered PHP functions in XSLTProcessor::registerPHPFunctions() | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-64942@lists.php.net to get a copy of this message | ||
Hello all,
During writing tests for the Berlin PHP Testfest, I noticed that you
may call the XSLTProcessor::registerPHPFunctions() several times and
that the new functions get appended to the allowed list of functions.
Problem is that there is absolutely no way to un-register allowed
functions or at least reset the list by using an empty array (which
would be bad style) or null or false.
Shouldn't that possibility be added?
Currently, the only way to reset the list is to create a new processor
object.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc