php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19193 file_exists() doesn't work
Submitted: 2002-08-30 04:31 UTC Modified: 2002-09-09 05:23 UTC
From: michael dot schlottke at sloede dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4CVS-2002-08-30 OS: Linux Redhat7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael dot schlottke at sloede dot com
New email:
PHP Version: OS:

 

 [2002-08-30 04:31 UTC] michael dot schlottke at sloede dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-30 04:38 UTC] michael dot schlottke at sloede dot 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:44 UTC] derick@php.net
What is your exact PHP Version, the CVS snapshot of yesterday?

Derick
 [2002-08-30 05:56 UTC] michael dot schlottke at sloede dot com
I tried with the 'latest' snapshot yesterday and today, but both produce make errors so I used the yesterdays latest-STABLE
 [2002-09-09 05:23 UTC] 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-10-08 09:24 UTC] davidwork at raycz dot cz
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 11:01:32 2024 UTC