php.net |  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: momo@php.net 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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 22 = ?
Subscribe to this entry?

 
 [2003-05-12 10:51 UTC] momo@php.net
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 \
                --with-wavsmpl


now:

------------------------------------
[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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-13 15:08 UTC] moriyoshi@php.net
1. open_basedir() has effect on most filesystem related functions. See http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir 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] momo@php.net
i corrupted some files with old testing's sorry for the bugy report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 02:01:30 2024 UTC