#19193 [Com]: file_exists() doesn't work

From: Date: Tue, 08 Oct 2002 14:24:00 +0000
Subject: #19193 [Com]: file_exists() doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21808@lists.php.net to get a copy of this message
ID: 19193 Comment by: davidwork@raycz.cz Reported By: michael.schlottke@sloede.com Status: Closed Bug Type: Filesystem function related Operating System: Linux Redhat7.3 PHP Version: 4CVS-2002-08-30 New Comment: I am experiencing this problem too. Functions is_file() and is_dir() function ok but file_exists() return always false. My system is RedHat 7.1 (kernel 2.4.2-2), Apache 2.0.42 (source distribution), PHP 4.2.3 (from source bz2 file). My configure command: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--enable-ftp' '--enable-imap' David Previous Comments: ------------------------------------------------------------------------ [2002-09-09 05:23:05] sniper@php.net Works fine here with PHP 4.2.3. Please check the file permissions, etc. And if it doesn't work with 4.2.3, give us a little bit more information about this.. (like an example script..what sapi you're using, etc.) ------------------------------------------------------------------------ [2002-08-30 05:56:47] michael.schlottke@sloede.com I tried with the 'latest' snapshot yesterday and today, but both produce make errors so I used the yesterdays latest-STABLE ------------------------------------------------------------------------ [2002-08-30 04:44:07] derick@php.net What is your exact PHP Version, the CVS snapshot of yesterday? Derick ------------------------------------------------------------------------ [2002-08-30 04:38:16] michael.schlottke@sloede.com By the way, it doesn't work with absolute paths either, as the other bug report about file_exists() said. ------------------------------------------------------------------------ [2002-08-30 04:31:23] michael.schlottke@sloede.com Since upgrading to a newer PHP Version file_exists() doesn't work any more. It returns always false, no matter if the file given as argument exists or not. include(), however, works fine. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19193&edit=1

« previous php.bugs (#21808) next »