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

From: Date: Tue, 02 Jul 2002 17:27:16 +0000
Subject: Bug #15218 Updated: file_exists ('') returns TRUE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12832@lists.php.net to get a copy of this message
ID: 15218 Updated by: sfox@php.net Reported By: jlugton@iprimus.com.au -Status: Open +Status: Closed Bug Type: Filesystem function related Operating System: Windows XP PHP Version: 4.1.0 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The 'file' referred to is actually the current working directory. Previous Comments: ------------------------------------------------------------------------ [2002-04-04 12:49:41] derick@php.net $f = fopen ("php://stdin", "r"); ------------------------------------------------------------------------ [2002-04-04 11:40:45] lithron@bellsouth.net 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? ------------------------------------------------------------------------ [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 (#12832) next »