php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52853 glob
Submitted: 2010-09-15 14:32 UTC Modified: 2013-12-05 19:45 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: patrice dot edeline at inpec dot fr Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.14 OS: windows 2003
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: patrice dot edeline at inpec dot fr
New email:
PHP Version: OS:

 

 [2010-09-15 14:32 UTC] patrice dot edeline at inpec dot fr
Description:
------------
glob("dirname/*");
don't find dirname/. www.caraudiovideo.com ..url
 

Test script:
---------------
$res=glob("c:/toto/*");


Expected result:
----------------
$res=array();

Actual result:
--------------
$res[0]="c:/toto/. www.caraudiovideo.com ..url"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-15 14:34 UTC] patrice dot edeline at inpec dot fr
Expected result:
----------------
$res[0]="c:/toto/. www.caraudiovideo.com ..url"


Actual result:
--------------
$res=array();
 [2010-09-15 15:32 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-09-15 15:32 UTC] pajoye@php.net
I don't understand what your example does. Can you past the output of:

dir c:\toto\ here please.
 [2010-09-15 15:50 UTC] patrice dot edeline at inpec dot fr
-Status: Feedback +Status: Open
 [2010-09-15 15:50 UTC] patrice dot edeline at inpec dot fr
R‚pertoire de C:\toto
15/09/2010  15:49    <REP>          .
15/09/2010  15:49    <REP>          ..
13/11/2004  01:14               264 . www.caraudiovideo.com ..url
               1 fichier(s)              264 octets
 [2010-10-08 22:51 UTC] jon at humaninternals dot com
glob('*') ignores all files that start with a dot, I thought it was used to hide 
the '.' and '..' that are presented as files but I begin to think it was used to 
hide files that "should" be hidden like '.svn' and '.htaccess.
Yet, PHP's glob ignores any file attributes such as 'Hidden' and displays files 
that are actually hidden, shouldn't this be changed ?
 [2013-12-05 19:45 UTC] mike@php.net
-Status: Open +Status: Not a bug
 [2013-12-05 19:45 UTC] mike@php.net
See last comment.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Dec 06 01:00:01 2025 UTC