#19934 [NEW]: file_exists($filename) returns true for an empty filename
| From: | u15116 at hs-harz dot de | Date: | Wed, 16 Oct 2002 14:24:40 +0000 |
| Subject: | #19934 [NEW]: file_exists($filename) returns true for an empty filename | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-22574@lists.php.net to get a copy of this message | ||
From: u15116@hs-harz.de
Operating system: Windows XP Professional
PHP version: 4.2.0
PHP Bug Type: Filesystem function related
Bug description: file_exists($filename) returns true for an empty filename
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.
--
Edit bug report at http://bugs.php.net/?id=19934&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19934&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19934&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19934&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19934&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19934&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19934&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19934&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19934&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19934&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19934&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19934&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19934&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19934&r=isapi