#19969 [Opn->Fbk]: file_exists() doesn't return correct results

From: Date: Fri, 18 Oct 2002 05:39:56 +0000
Subject: #19969 [Opn->Fbk]: file_exists() doesn't return correct results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22732@lists.php.net to get a copy of this message
ID: 19969 Updated by: derick@php.net Reported By: aldem-php@aldem.net -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Slackware Linux PHP Version: 4.2.3 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#22732) next »