<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.restore-include-path.php',
    1 => 'restore_include_path',
    2 => 'Restores the value of the include_path configuration option',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP Options/Info Functions',
  ),
  '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' => 'en',
    '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">Restores the value of the include_path configuration option</span></p>

 </div>

 <div id="function.restore-include-path-refsynopsisdiv">
   <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function has been
<em>DEPRECATED</em> as of PHP 7.4.0, and <em>REMOVED</em> as of PHP 8.0.0. Relying on this function
is highly discouraged.</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.restore-include-path-description">
  <h3 class="title">Description</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">
   Restores the <a href="ini.core.php#ini.include-path" class="link">include_path</a>
   configuration option back to its original master value as set in
   <var class="filename">php.ini</var>
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.restore-include-path-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.restore-include-path-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.restore-include-path-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       Removed this function.
      </td>
     </tr>

     <tr>
      <td>7.4.0</td>
      <td>
       Deprecated this function.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.restore-include-path-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 <span class="function"><strong>restore_include_path()</strong></span> example</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">// Or using 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">See Also</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> - Restores the value of a configuration option</span></li>
    <li><span class="function"><a href="function.get-include-path.php" class="function" rel="rdfs-seeAlso">get_include_path()</a> - Gets the current include_path configuration option</span></li>
    <li><span class="function"><a href="function.set-include-path.php" class="function" rel="rdfs-seeAlso">set_include_path()</a> - Sets the include_path configuration option</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); ?>