uopz_backup
(PECL uopz 1 >= 1.0.3, PECL uopz 2)
Backup a function
Function-5-0-0
Description
uopz_backup(string $function): void
uopz_backup(string $class, string $function): void
Backup a function at runtime, to be restored on shutdown
Parameters
classThe name of the class containing the function to backup
functionThe name of the function
Return Values
Examples
uopz_backup() example
php
<?php
uopz_backup("fgets");
uopz_function("fgets", function(){
return true;
});
var_dump(fgets());
?>The above example will output:
output
bool(true)