php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28477 glob() searches in / for "*"
Submitted: 2004-05-21 20:13 UTC Modified: 2004-06-07 20:31 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: d at koteroff dot ru Assigned: iliaa (profile)
Status: Closed Package: Directory function related
PHP Version: 5CVS-2004-05-21 (dev) OS: Windows
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: d at koteroff dot ru
New email:
PHP Version: OS:

 

 [2004-05-21 20:13 UTC] d at koteroff dot ru
Description:
------------
Yesterday's CVS version of glob() has a bug while searching by relative masks. PHP5 RC2 works well. Version php5-win32-200405050630 in CVS works correctly too.

getcwd() returns correct directory.

Reproduce code:
---------------
print_r(glob("*"));

Expected result:
----------------
Files in current directory.

Actual result:
--------------
Files in "/" (root directory).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-03 20:48 UTC] swinn at yahoo dot com
This bug is present in the Win32 version 4.3.7.
 [2004-06-07 20:31 UTC] iliaa@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-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 28 05:01:48 2021 UTC