restore_include_path
(PHP 4 >= 4.3.0, PHP 5, PHP 7)
restore_include_path — include_path 구성 옵션의 값을 복원합니다.
경고 이 함수는 PHP 7.4.0부터 DEPRECATED되었으며 PHP 8.0.0부터 제거되었습니다. 이 함수에 의존하는 것은 매우 권장되지 않습니다.
설명
restore_include_path(): void
include_path 구성 옵션을 php.ini에 설정된 원래 마스터 값으로 복원합니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
값이 반환되지 않습니다.
Examples
예제 #1 restore_include_path() 예제
<?php
echo get_include_path(); // .:/usr/local/lib/php
set_include_path('/inc');
echo get_include_path(); // /inc
restore_include_path();
// Or using ini_restore()
ini_restore('include_path');
echo get_include_path(); // .:/usr/local/lib/php
?>
기타
- ini_restore() - 구성 옵션의 값을 복원합니다.
- get_include_path() - 현재 include_path 구성 옵션을 가져옵니다.
- set_include_path() - include_path 구성 옵션을 설정합니다.
- include - include