php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41684 open_basedir restrictions and file_exists
Submitted: 2007-06-14 04:35 UTC Modified: 2007-07-03 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: nicolas dot croiset at brume dot org Assigned:
Status: No Feedback Package: Safe Mode/open_basedir
PHP Version: 5.2.3 OS: linux FC4
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
21 + 10 = ?
Subscribe to this entry?

 
 [2007-06-14 04:35 UTC] nicolas dot croiset at brume dot org
Description:
------------
For example in apache configuration you have a restriction like and you are in safe mode :
php_admin_value open_basedir /home/httpd/html/:/tmp/


Reproduce code:
---------------
if you want to check if a file is present or not
file_exists("test.txt") and this file is not present in the directory /home/httpd/html/, you have the open basedir restriction warning.

But if I do the same thing in a subdirectory inside the restriction it is OK. It is not OK only in the directory /home/httpd/html/.

Expected result:
----------------
no warning

Actual result:
--------------
you have the open basedir restriction warning

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC