#21531 [Fbk]: file_exists() displays warning along with returning FALSE
| From: | sniper@php.net | Date: | Thu, 09 Jan 2003 00:10:33 +0000 |
| Subject: | #21531 [Fbk]: file_exists() displays warning along with returning FALSE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29506@lists.php.net to get a copy of this message | ||
ID: 21531
Updated by: sniper@php.net
Reported By: books@medianet.pl
Status: Feedback
Bug Type: Filesystem function related
Operating System: SunOS 5.8
PHP Version: 4.3.0
New Comment:
Please try the latest stable snapshot from here: http://snaps.php.net/
Previous Comments:
------------------------------------------------------------------------
[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 />
------------------------------------------------------------------------
[2003-01-08 17:14:08] kalowsky@php.net
On three different platforms I'm unable to reproduce this bug. Please
provide a bit more detail to this bug.
------------------------------------------------------------------------
[2003-01-08 16:45:16] pollita@php.net
What is the exact text of the warning message?
------------------------------------------------------------------------
[2003-01-08 16:15:29] books@medianet.pl
In case that file $file does not exist, invoking:
file_exists($file);
displays warning message, which should not take place.
I've noticed bug report for similar problem for 4.2.1, which was then
"fixed in CVS". Deja vu? ;)
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