Bug #15218 Updated: file_exists ('') returns TRUE
| From: | derick@php.net | Date: | Thu, 04 Apr 2002 17:49:42 +0000 |
| Subject: | Bug #15218 Updated: file_exists ('') returns TRUE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4054@lists.php.net to get a copy of this message | ||
ID: 15218
Updated by: derick@php.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:
$f = fopen ("php://stdin", "r");
Previous Comments:
------------------------------------------------------------------------
[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