php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31330 Bug #31242 related to glob() and reported fixed is still active
Submitted: 2004-12-28 22:59 UTC Modified: 2004-12-28 23:19 UTC
From: as at mindcom dot de Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4CVS-2004-12-28 (stable) OS: Win 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: as at mindcom dot de
New email:
PHP Version: OS:

 

 [2004-12-28 22:59 UTC] as at mindcom dot de
Description:
------------
glob() returns false on an empty dir, not an empty array as exspected. the latest snapshot does not fix it (Dec 28, 2004 21:30 GMT)

Reproduce code:
---------------
$files = glob("/some_empty_dir/*");
var_dump($files);


Expected result:
----------------
array(0) {
} 


Actual result:
--------------
bool(false)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-28 23:10 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Do not create a new report for the same bug!
 [2004-12-28 23:19 UTC] as at mindcom dot de
sorry, I only found Bug #31242 and that one is closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Oct 25 05:01:23 2020 UTC