#19969 [Fbk->Csd]: file_exists() doesn't return correct results
| From: | aldem-php at aldem dot net | Date: | Fri, 18 Oct 2002 06:02:52 +0000 |
| Subject: | #19969 [Fbk->Csd]: file_exists() doesn't return correct results | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22737@lists.php.net to get a copy of this message | ||
ID: 19969
User updated by: aldem-php@aldem.net
Reported By: aldem-php@aldem.net
-Status: Feedback
+Status: Closed
Bug Type: Filesystem function related
Operating System: Slackware Linux
PHP Version: 4.2.3
New Comment:
Thanks, the problem is resolved after installation of latest snapshot.
Previous Comments:
------------------------------------------------------------------------
[2002-10-18 00:39:55] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-10-18 00:09:10] aldem-php@aldem.net
I upgraded my installation to Apache 2.0.43 (old was 2.0.36) and PHP
2.4.3 (old was 2.4.1), and noticed that my application doesn't work
anymore. PHP is compiled as module.
Finally, I found that file_exists() function doesn't work properly. My
test script:
<?php
$e1 = file_exists("index.php");
$e2 = is_file("index.php");
echo "e1 = $e1; e2 = $e2";
?>
It's output:
e1 = ; e2 = 1
file_exists(".") always returns 1.
Nothing was changed in configuration after upgrade. I looked into
source, and found that code responsible for this functionality was
significantly changed, so... Perhaps this is a bug. Serious one.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19969&edit=1