runkit_function_redefine
Replace a function definition with a new implementation
&reftitle.description;
boolrunkit_function_redefine
stringfuncname
stringarglist
stringcode
boolreturn_by_reference&null;
stringdoc_comment&null;
boolrunkit_function_redefine
stringfuncname
Closureclosure
stringdoc_comment&null;
¬e.runkit.internal-override;
&reftitle.parameters;
funcname
Name of function to redefine
arglist
New list of arguments to be accepted by function
code
New code implementation
closure
A closure that defines the function.
return_by_reference
Whether the function should return by reference.
doc_comment
The doc comment of the function.
&reftitle.returnvalues;
&return.success;
&reftitle.changelog;
&Version;
&Description;
runkit 1.0.4
An alternative syntax expecting a closure has been added.
runkit 1.0.4
The optional parameters return_by_reference and
doc_comment have been added.
&reftitle.examples;
A runkit_function_redefine example
]]>
&example.outputs;
&reftitle.seealso;
runkit_function_add
runkit_function_copy
runkit_function_rename
runkit_function_remove
runkit_method_redefine