php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42244 file_exists() always returns TRUE with the filename as wild-card char(*) on Win
Submitted: 2007-08-08 10:09 UTC Modified: 2007-08-09 10:50 UTC
From: mahesh dot vemula at in dot ibm dot com Assigned:
Status: Not a bug Package: Performance problem
PHP Version: 6CVS-2007-08-08 (snap) OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mahesh dot vemula at in dot ibm dot com
New email:
PHP Version: OS:

 

 [2007-08-08 10:09 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-09 10:50 UTC] mahesh dot vemula at in dot ibm dot com
The probelm is fixed in latest snapshot.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Aug 06 07:01:25 2020 UTC