|  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
 [2004-12-28 22:59 UTC] as at mindcom dot de
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/*");

Expected result:
array(0) {

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-28 23:10 UTC]
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: Wed Oct 28 08:01:28 2020 UTC