Query: runkit_function_redefine
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RUNKIT_FUNCTION_REDEFINE(3) 1 RUNKIT_FUNCTION_REDEFINE(3) runkit_function_redefine - Replace a function definition with a new implementationSYNOPSISbool runkit_function_redefine (string $funcname, string $arglist, string $code)DESCRIPTIONNote By default, only userspace functions may be removed, renamed, or modified. In order to override internal functions, you must enable the runkit.internal_override setting in php.ini.PARAMETERSo $funcname - Name of function to redefine o $arglist - New list of arguments to be accepted by function o $code - New code implementationRETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 A runkit_function_redefine(3) example <?php function testme() { echo "Original Testme Implementation "; } testme(); runkit_function_redefine('testme','','echo "New Testme Implementation ";'); testme(); ?> The above example will output: Original Testme Implementation New Testme ImplementationSEE ALSOrunkit_function_add(3), runkit_function_copy(3), runkit_function_rename(3), runkit_function_remove(3). PHP Documentation Group RUNKIT_FUNCTION_REDEFINE(3)
| Related Man Pages |
|---|
| runkit_method_rename(3) - php |
| phar.setstub(3) - php |
| ini_get(3) - php |
| classkit_method_redefine(3) - php |
| function_exists(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Implementation of ls - i command |
| C++ to C |
| The "Original" UNIX License |
| Simplified Code? Acceptable? |
| Reminder for venkat918: Deleting Original Data After Receiving Help and Answers |