#41684 [Opn->Fbk]: open_basedir restrictions and file_exists

From: Date: Mon, 25 Jun 2007 18:53:37 +0000
Subject: #41684 [Opn->Fbk]: open_basedir restrictions and file_exists
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114204@lists.php.net to get a copy of this message
ID: 41684 Updated by: tony2001@php.net Reported By: nicolas dot croiset at brume dot org -Status: Open +Status: Feedback Bug Type: Safe Mode/open_basedir Operating System: linux FC4 PHP Version: 5.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2007-06-14 04:35:00] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41684&edit=1

« previous php.bugs (#114204) next »