From: support at spill dot nl
Operating system: RHL 8.0
PHP version: 4.3.3
PHP Bug Type: PHP options/info functions
Bug description: open_basedir error when trying to set error_reporting through ini_set
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 bug report at http://bugs.php.net/?id=25895&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25895&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25895&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25895&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25895&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25895&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25895&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25895&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25895&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25895&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25895&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25895&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25895&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25895&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25895&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25895&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25895&r=float