array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.restore-include-path.php', 1 => 'restore_include_path', ), 'up' => array ( 0 => 'ref.info.php', 1 => 'PHP Seçenek/Bilgi İşlevleri', ), 'prev' => array ( 0 => 'function.putenv.php', 1 => 'putenv', ), 'next' => array ( 0 => 'function.set-include-path.php', 1 => 'set_include_path', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/info/functions/restore-include-path.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.3.0, PHP 5, PHP 7)
restore_include_path — include_path yönergesini eski değerine ayarlar
Bu işlevin kullanımı PHP 7.4.0 itibariyle ÖNERİLMEMEKTE olup PHP 8.0.0'da tamamen KALDIRILMIŞTIR. Bu işleve kesinlikle güvenilmemelidir.
include_path yönergesinin çalışma anı değerini tekrar php.ini dosyasında belirtilen değerine ayarlar.
Bu işlevin bağımsız değişkeni yoktur.
Hiçbir değer dönmez.
Örnek 1 - restore_include_path() örneği
<?php
echo get_include_path(); // .:/usr/local/lib/php
set_include_path('/inc');
echo get_include_path(); // /inc
restore_include_path();
// veya ini_restore() kullanarak
ini_restore('include_path');
echo get_include_path(); // .:/usr/local/lib/php
?>