restore_include_path

(PHP 4 >= 4.3.0, PHP 5)

restore_include_path --  include_path設定オプションの値を元に戻す

Description

void restore_include_path ( void )

include_path 設定値を php.ini でセットされたオリジナルの設定に戻します。

例 1. restore_include_path() example

<?php

echo get_include_path();  // .:/usr/local/lib/php

set_include_path('/inc');

echo
get_include_path();  // /inc

// PHP 4.3.0以降で動作します
restore_include_path();

// 全てのバージョンのPHPで動作します
ini_restore('include_path');

echo
get_include_path();  // .:/usr/local/lib/php

?>

ini_restore()set_include_path()get_include_path()include() も参照してください。