#25895 [Opn->Asn]: open_basedir error when trying to set error_reporting through ini_set
| From: | sniper@php.net | Date: | Fri, 17 Oct 2003 13:01:33 +0000 |
| Subject: | #25895 [Opn->Asn]: open_basedir error when trying to set error_reporting through ini_set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49138@lists.php.net to get a copy of this message | ||
ID: 25895
Updated by: sniper@php.net
Reported By: support at spill dot nl
-Status: Open
+Status: Assigned
Bug Type: PHP options/info functions
Operating System: RHL 8.0
PHP Version: 4.3.3
-Assigned To:
+Assigned To: iliaa
New Comment:
Short test:
# sapi/cli/php -dopen_basedir=/foobar -r 'ini_set("fooba_foo",
"foooo");'
Previous Comments:
------------------------------------------------------------------------
[2003-10-17 07:02:10] support at spill dot nl
Description:
------------
When trying to run the posted code, I get the following (nonsense)
error:
PHP Warning: ini_set(): open_basedir restriction in effect. File(2047)
is not within the allowed path(s): (/usr/share/pear/) in
/home/admins/matthijs/test.php on line 3
Conditions:
- Occurs only when the php script itself is located in a path not
contained in open_basedir (as you can see I do not have '.' in my
open_basedir path).
- Calling 'error_reporting(E_ALL);' instead does not produce this
warning.
- Tested only on: PHP 4.3.3 (cli)
Reproduce code:
---------------
<?php
ini_set("error_reporting",E_ALL);
?>
Expected result:
----------------
no output, no warnings, error level set to the level indicated
Actual result:
--------------
PHP Warning: ini_set(): open_basedir restriction in effect. File(2047)
is not within the allowed path(s): (/usr/share/pear/) in
/home/admins/matthijs/test.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25895&edit=1