UOPZ_RESTORE(3) 1 UOPZ_RESTORE(3)
uopz_restore - Restore a previously backed up function
SYNOPSIS
void uopz_restore (string $class, string $function)
DESCRIPTION
void uopz_restore (string $function)
Restore a previously backed up function
PARAMETERS
o $class
- The name of the class containing the function to restore
o $function
- The name of the function
RETURN VALUES
EXAMPLES
Example #1
uopz_restore(3) example
<?php
uopz_backup("fgets");
uopz_function("fgets", function(){
return true;
});
var_dump(fgets());
uopz_restore('fgets');
fgets();
?>
The above example will output something similar to:
Warning: fgets() expects at least 1 parameter, 0 given in /path/to/script.php on line 8
PHP Documentation Group UOPZ_RESTORE(3)