Bug #15218 Updated: file_exists ('') returns TRUE

From: Date: Thu, 04 Apr 2002 16:40:47 +0000
Subject: Bug #15218 Updated: file_exists ('') returns TRUE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4049@lists.php.net to get a copy of this message
ID: 15218 Updated by: lithron@bellsouth.net Reported By: jlugton@iprimus.com.au Status: Open Bug Type: Filesystem function related Operating System: Windows XP PHP Version: 4.1.0 New Comment: As a side note, perhaps the current version is correct. Opening a blank file name in most console languages (Turbo C/Turbo Pascal), opens a handle to the console for input/output. If you were planning on using PHP for console development, wouldn't you want an easy way to open the stdio types? Previous Comments: ------------------------------------------------------------------------ [2002-01-25 01:44:07] jlugton@iprimus.com.au The following will echo "I FOUND NOTHING!" on Windows XP running PHP (version 4.1.0), but on linux PHP (Version 4.0.4) returns FALSE which is correct. <?php if (file_exists("")) echo "I FOUND NOTHING!" ; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15218&edit=1

« previous php.bugs (#4049) next »