<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.restore-include-path.php',
    1 => 'restore_include_path',
    2 => '还原 include_path 配置选项的值',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP 选项/信息 函数',
  ),
  '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' => 'zh',
    'path' => 'reference/info/functions/restore-include-path.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.restore-include-path" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">restore_include_path</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">restore_include_path</span> &mdash; <span class="dc-title">还原 include_path 配置选项的值</span></p>

 </div>

 <div id="function.restore-include-path-refsynopsisdiv">
   <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数已自 PHP 7.4.0
起<em>弃用</em>，自 PHP 8.0.0 起<em>移除</em>。强烈建议不要依赖本函数。</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.restore-include-path-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>restore_include_path</strong></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   还原到 <var class="filename">php.ini</var> 中设置的 <a href="ini.core.php#ini.include-path" class="link">include_path</a> 主值。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.restore-include-path-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.restore-include-path-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.restore-include-path-changelog">
 <h3 class="title">更新日志</h3>
 <table class="doctable informaltable">
  
   <thead>
    <tr>
     <th>版本</th>
     <th>说明</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td>8.0.0</td>
     <td>
      此函数已移除。
     </td>
    </tr>

    <tr>
     <td>7.4.0</td>
     <td>
      此函数已废弃。
     </td>
    </tr>

   </tbody>
  
 </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.restore-include-path-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 <span class="function"><strong>restore_include_path()</strong></span> 示例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">get_include_path</span><span style="color: #007700">();  </span><span style="color: #FF8000">// .:/usr/local/lib/php<br /><br /></span><span style="color: #0000BB">set_include_path</span><span style="color: #007700">(</span><span style="color: #DD0000">'/inc'</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">get_include_path</span><span style="color: #007700">();  </span><span style="color: #FF8000">// /inc<br /><br /></span><span style="color: #0000BB">restore_include_path</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// 或使用 ini_restore<br /></span><span style="color: #0000BB">ini_restore</span><span style="color: #007700">(</span><span style="color: #DD0000">'include_path'</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">get_include_path</span><span style="color: #007700">();  </span><span style="color: #FF8000">// .:/usr/local/lib/php<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.restore-include-path-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ini-restore.php" class="function" rel="rdfs-seeAlso">ini_restore()</a> - 恢复配置选项的值</span></li>
    <li><span class="function"><a href="function.get-include-path.php" class="function" rel="rdfs-seeAlso">get_include_path()</a> - 获取当前的 include_path 配置选项</span></li>
    <li><span class="function"><a href="function.set-include-path.php" class="function" rel="rdfs-seeAlso">set_include_path()</a> - 设置 include_path 配置选项</span></li>
    <li><span class="function"><a href="function.include.php" class="function" rel="rdfs-seeAlso">include</a> - include</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>