|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23594 19292 is back (open_basdir restriction)!
Submitted: 2003-05-12 10:51 UTC Modified: 2005-01-31 23:34 UTC
From: Assigned:
Status: Not a bug Package: Safe Mode/open_basedir
PHP Version: 4CVS-2003-05-12 (stable) OS: RH9
Private report: No CVE-ID: None
 [2003-05-12 10:51 UTC]
first, coz the overload of 19292 i started new bug:

here the conf:

./configure    --disable-cgi --disable-ctype \
                --with-gd --with-zlib-dir=/usr/lib \
                --enable-debug \
                --with-apxs=/www/bin/apxs \


[root@moshe-lap php-dev]# php -a
Interactive mode enabled
$p = fopen("/root/.bash_history","rb");
Warning: fopen(): open_basedir restriction in effect. File(/root/.bash_history) is not within the allowed path(s): (.:/usr/local/lib/php) in - on line 2
Warning: fopen(/root/.bash_history): failed to open stream: Operation not permitted in - on line 2
$p = fopen("/tmp/g","rb");

the problem also affects CLI.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-13 15:08 UTC]
1. open_basedir() has effect on most filesystem related functions. See for detail.

2. as for the segfault you might have experienced, I cannot replicate it so far. Could you provide a short and self-contained script to replicate the problem?
 [2003-05-15 17:27 UTC]
i corrupted some files with old testing's sorry for the bugy report.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 03:01:26 2019 UTC