|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10463 ini_restore() doesn't restore to php.ini settings
Submitted: 2001-04-23 14:33 UTC Modified: 2002-03-15 11:43 UTC
From: colin at easydns dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.2.0-dev OS: ALL
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: colin at easydns dot com
New email:
PHP Version: OS:


 [2001-04-23 14:33 UTC] colin at easydns dot com
Here is the script which temporarily alters the include_path, then should restore it:

$path = ini_get('include_path');
echo "before:\n$path\n";

ini_set('include_path', $path.':/foo');
$path = ini_get('include_path');
echo "now:\n$path\n";

$path = ini_get('include_path');
echo "after:\n$path\n";


The output:


So, it looks like ini_restore() is restoring to the "default" include path even though the "before" line above is what is in my php.ini file.

The docs say it should "restore a given configuration option to its original value."  Shouldn't that be the setting in the php.ini file?

- Colin


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-15 11:43 UTC]
This bug has already been fixed in the latest released version of
PHP, which you can download at

Works in 4.1.2
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 13:01:24 2020 UTC