ID: 19193 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] What is your exact PHP Version, the CVS snapshot of yesterday? Derick ------------------------------------------------------------------------ [2002-08-30 04:38:16] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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