uopz_restore

(PECL uopz >= 1.0.3)
Restore a previously backed up function
void uopz_restore ( string $class, string $function )
void uopz_restore ( string $function )

Restore a previously backed up function

Parameters:
class

The name of the class containing the function to restore

function

The name of the function

Returns:
Examples:
uopz_restore() example
1
2
3
4
5
6
7
8
9
<?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
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.