|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19934 file_exists($filename) returns true for an empty filename
Submitted: 2002-10-16 09:24 UTC Modified: 2002-10-16 09:30 UTC
From: u15116 at hs-harz dot de Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.2.0 OS: Windows XP Professional
Private report: No CVE-ID: None
 [2002-10-16 09:24 UTC] u15116 at hs-harz dot de
The file_exists($filename) returns true for an empty or unset variable $filename. When trying to open that file via fopen($filename) PHP answers :
fopen( , "r") No error on line sth.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-16 09:30 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 04:01:24 2020 UTC