#42244 [Opn->Bgs]: file_exists() always returns TRUE with the filename as wild-card char(*) on Win
| From: | mahesh dot vemula at in dot ibm dot com | Date: | Thu, 09 Aug 2007 10:51:00 +0000 |
| Subject: | #42244 [Opn->Bgs]: file_exists() always returns TRUE with the filename as wild-card char(*) on Win | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115906@lists.php.net to get a copy of this message | ||
ID: 42244
User updated by: mahesh dot vemula at in dot ibm dot com
Reported By: mahesh dot vemula at in dot ibm dot com
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: Windows XP
PHP Version: 6CVS-2007-08-08 (snap)
New Comment:
The probelm is fixed in latest snapshot.
Previous Comments:
------------------------------------------------------------------------
[2007-08-08 10:09:53] mahesh dot vemula at in dot ibm dot com
Description:
------------
file_exists() function behavior on PHP6 differs with PHP5 for the
filenames containing wild-card char(*).
PHP6 always returns TRUE for the file name with "*", and matches any
file with the filename containing wild-card char(*). This is happening
only for Windows.
Reproduce code:
---------------
<?php
var_dump( file_exists("*") );
?>
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42244&edit=1