php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31242 bug #29928 related to glob() and reported fixed is still active
Submitted: 2004-12-22 13:20 UTC Modified: 2004-12-23 06:30 UTC
From: radonov at ecad dot tu-sofia dot bg Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.3.10 OS: Solaris 8
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: radonov at ecad dot tu-sofia dot bg
New email:
PHP Version: OS:

 

 [2004-12-22 13:20 UTC] radonov at ecad dot tu-sofia dot bg
Description:
------------
Like in 4.3.9 glob() returns false instead of an empty array.

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

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

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-23 06:30 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 06:01:32 2025 UTC