(PECL apd >= 0.2)
override_function — Overrides built-in functions
Overrides built-in functions by replacing them in the symbol table.
The function to override.
The function arguments, as a comma separated string.
Usually you will want to pass this parameter, as well as the
function_code parameter, as a single quote delimited string. The reason for using single quoted strings, is to protect the variable names from parsing, otherwise, if you use double quotes there will be a need to escape the variable names, e.g. \$your_var.
The new code for the function.
TRUE on success or
FALSE on failure.
Example #1 override_function() example
override_function('test', '$a,$b', 'echo "DOING TEST"; return $a * $b;');