#25880 [Csd->Bgs]: file_exists() strange behaviour
| From: | sniper@php.net | Date: | Thu, 16 Oct 2003 04:52:19 +0000 |
| Subject: | #25880 [Csd->Bgs]: file_exists() strange behaviour | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49076@lists.php.net to get a copy of this message | ||
ID: 25880
Updated by: sniper@php.net
Reported By: mpilipenko at ukr dot net
-Status: Closed
+Status: Bogus
Bug Type: *Directory/Filesystem functions
Operating System: Windows 2000 Pro +SP4
PHP Version: 4.3.3
New Comment:
Actually, not 'fixed'. "con" is special file in Windows (since DOS,
iirc..)
It would be strange if it didn't exist.
Previous Comments:
------------------------------------------------------------------------
[2003-10-15 09:22:00] mpilipenko at ukr dot net
Description:
------------
Function file_exists() returns TRUE on non-existing files.
Tested on Windows 2000 Pro +SP4, Apache 1.3.27 & PHP 4.3.1, 4.3.3,
4.3.4RC1
Reproduce code:
---------------
<?
var_dump(file_exists("con"));
var_dump(file_exists("con.[anything_you_want]"));
?>
Expected result:
----------------
false
false
Actual result:
--------------
true
true
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25880&edit=1