|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19969 file_exists() doesn't return correct results
Submitted: 2002-10-18 00:09 UTC Modified: 2002-10-18 01:02 UTC
From: aldem-php at aldem dot net Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.2.3 OS: Slackware Linux
Private report: No CVE-ID: None
 [2002-10-18 00:09 UTC] aldem-php at aldem dot 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:

        $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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-18 00:39 UTC]
Please try using this CVS snapshot:
For Windows:
 [2002-10-18 01:02 UTC] aldem-php at aldem dot net
Thanks, the problem is resolved after installation of latest snapshot.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 09:01:31 2024 UTC