#21531 [Opn->Csd]: file_exists() displays warning along with returning FALSE
| From: | pollita@php.net | Date: | Thu, 09 Jan 2003 22:00:16 +0000 |
| Subject: | #21531 [Opn->Csd]: file_exists() displays warning along with returning FALSE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29616@lists.php.net to get a copy of this message | ||
ID: 21531
Updated by: pollita@php.net
Reported By: books@medianet.pl
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: SunOS 5.8
PHP Version: 4.3.0
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
file_exists() will no longer throw errors when in safe_mode
Previous Comments:
------------------------------------------------------------------------
[2003-01-09 03:34:19] books@medianet.pl
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 />
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
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