#22178 [Opn->Fbk]: file_exists() outputs warnings if file does not exist
| From: | iliaa@php.net | Date: | Tue, 11 Feb 2003 22:32:13 +0000 |
| Subject: | #22178 [Opn->Fbk]: file_exists() outputs warnings if file does not exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32831@lists.php.net to get a copy of this message | ||
ID: 22178
Updated by: iliaa@php.net
Reported By: marchart@marchart.at
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: solaris8
PHP Version: 4.3.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
At least one bug associated with warnings in file_exists & safe_mode
has been fixed in latest CVS. So, try the latest CVS and see if that
fixes the problem, if it does not please reply with all of the errors
generated by the function.
Previous Comments:
------------------------------------------------------------------------
[2003-02-11 16:12:11] marchart@marchart.at
Yes!
safe_mode = On
safe_mode_exec_dir = /usr/local/php/bin
open_basedir = /www
Filesystemlayout, usernames/uids/gids and
php.ini are ident to my linux box, where this is
running fine
------------------------------------------------------------------------
[2003-02-11 16:06:20] iliaa@php.net
Is your solaris server using the safe_mode and/or open_basedir ini
directives?
------------------------------------------------------------------------
[2003-02-11 16:01:51] marchart@marchart.at
The function "file_exists()" causes following PHP warning
on solaris8, if the file does not exist.
If the file exists the function works correctly.
Warning: file_exists() [function.file-exists]: Unable to access ...
On linux with the same setup (php 4.3.0 and apache 1.3.27)
it works fine! (The sun is a mirror from the linux box)
Best Regards
Johannes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22178&edit=1