php man page for runkit_function_redefine

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 implementation

SYNOPSIS
bool runkit_function_redefine (string $funcname, string $arglist, string $code)
DESCRIPTION
Note 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.
PARAMETERS
o $funcname - Name of function to redefine o $arglist - New list of arguments to be accepted by function o $code - New code implementation
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #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 Implementation
SEE ALSO
runkit_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
ini_get(3) - php
runkit_function_add(3) - php
runkit_method_remove(3) - php
runkit_sandbox_output_handler(3) - php
Similar Topics in the Unix Linux Community
Transactional Memory Should Be an Implementation Technique, Not a Programming Interfa
Implementation of ls - i command
C++ to C
The &quot;Original&quot; UNIX License
Simplified Code? Acceptable?