#21531 [Fbk->Opn]: file_exists() displays warning along with returning FALSE
| From: | books at medianet dot pl | Date: | Thu, 09 Jan 2003 09:34:19 +0000 |
| Subject: | #21531 [Fbk->Opn]: file_exists() displays warning along with returning FALSE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29544@lists.php.net to get a copy of this message | ||
ID: 21531
User updated by: books@medianet.pl
Reported By: books@medianet.pl
-Status: Feedback
+Status: Open
Bug Type: Filesystem function related
Operating System: SunOS 5.8
PHP Version: 4.3.0
New Comment:
safe_mode On On
safe_mode_exec_dir /opt/local/bin /opt/local/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
The problematic check is for (non-existing) file within directory tree
accessible to http server.
Regards,
<kocio />
Previous Comments:
------------------------------------------------------------------------
[2003-01-08 18:44:26] pollita@php.net
Are you running in safe_mode?
If so, what are the settings of the safe_mode related ini values?
------------------------------------------------------------------------
[2003-01-08 18:14:38] books@medianet.pl
Each and every directory has at least "r-x" permissions.
The file being tested does not exist, and haven't been there for months
(if ever).
------------------------------------------------------------------------
[2003-01-08 18:10:32] sniper@php.net
Please try the latest stable snapshot from here: http://snaps.php.net/
------------------------------------------------------------------------
[2003-01-08 17:56:18] kalowsky@php.net
I'm still unable to reproduce this. Can this be a case of directory
permissions maybe?
------------------------------------------------------------------------
[2003-01-08 17:47:57] books@medianet.pl
Warning: file_exists() [function.file-exists.html]: Unable to access
file_name.ext in /home/path/to/scripts/funcs.php on line 1234
PHP Version 4.3.0
System SunOS abcde 5.8 Generic_108529-17 i86pc
Configure Command
'./configure' '--with-apache=../apache_1.3.27' '--enable-track-vars'
'--enable-safe-mode' '--enable- sysvmsg' '--enable-sysvsem'
'--enable-sysvshm' '--enable-trans-sid' '--enable-sockets'
'--with-
openssl=/opt/openssl' '--with-pgsql=/opt/postgres'
'--with-mysql=/opt/mysql' '--with-zlib' '--with-gd'
Server API Apache
Virtual Directory Support disabled
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
The information above I have cut-and-paste from phpinfo().
If you need more, tell me what you exactly need.
Regards,
<kocio />
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21531
--
Edit this bug report at http://bugs.php.net/?id=21531&edit=1