restore_include_path

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

警告

この関数は PHP 7.4.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この関数に頼らないことを強く推奨します。

説明

void restore_include_path()

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

パラメータ

この関数にはパラメータはありません。

戻り値

値を返しません。

例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();

// または ini_restore を使用します
ini_restore('include_path');

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

?>

参考

  • ini_restore
  • get_include_path
  • set_include_path
  • include