uopz_restore
(PECL uopz 1 >= 1.0.3, PECL uopz 2)
uopz_restore — 이전에 백업한 함수 복원
경고 이 함수는 PECL uopz 5.0.0에서 제거되었습니다.
설명
uopz_restore(string $function
): void
uopz_restore(string $class
, string $function
): void
이전에 백업한 함수 복원
매개변수
class
- 복원할 함수가 포함된 클래스 이름
function
- 함수의 이름
반환 값
Examples
예제 #1 uopz_restore() 예제
<?php
uopz_backup("fgets");
uopz_function("fgets", function(){
return true;
});
var_dump(fgets());
uopz_restore('fgets');
fgets();
?>
위의 예는 다음과 유사한 결과를 출력합니다.
Warning: fgets() expects at least 1 parameter, 0 given in /path/to/script.php on line 8