#21531 [Fbk->Opn]: file_exists() displays warning along with returning FALSE
| From: | books at medianet dot pl | Date: | Wed, 08 Jan 2003 23:47:57 +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-29496@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:
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 />
Previous Comments:
------------------------------------------------------------------------
[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 />
------------------------------------------------------------------------
[2003-01-08 16:06:09] 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 />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21531&edit=1