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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 11:01:31 2024 UTC