|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-21 10:51 UTC] Sky at quit-clan dot de
This is another Feature request for special script parsing:
Currently there is the possibility to unset() variables.
But i want the option to clear the function/class namespace, too. A call like
unfunction('foobar');
sould make a redefine of function foobar() in eval()'d code possible, for example. Same thing for classes.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 26 02:00:01 2025 UTC |
couldn't you loop through the $classarray and unset each $key => $value of the array? foreach ( $class as $key => $value ) { unset($class[$key]) } that should fully obliterate reference to the class. i think