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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: momo@php.net
New email:
PHP Version: OS:

 

 [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: Fri Mar 29 10:01:28 2024 UTC