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
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: 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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC