Bug #52853 [Opn->Nab]: glob
| From: | mike@php.net | Date: | Thu, 05 Dec 2013 19:45:45 +0000 |
| Subject: | Bug #52853 [Opn->Nab]: glob | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183155@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52853&edit=1
ID: 52853
Updated by: mike@php.net
Reported by: patrice dot edeline at inpec dot fr
Summary: glob
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: windows 2003
PHP Version: 5.2.14
Block user comment: N
Private report: N
New Comment:
See last comment.
Previous Comments:
------------------------------------------------------------------------
[2010-10-08 22:51:59] 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 ?
------------------------------------------------------------------------
[2010-09-15 15:50:17] 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-09-15 15:32:38] 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 14:34:26] patrice dot edeline at inpec dot fr
Expected result:
----------------
$res[0]="c:/toto/. www.caraudiovideo.com ..url"
Actual result:
--------------
$res=array();
------------------------------------------------------------------------
[2010-09-15 14:32:19] 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"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=52853&edit=1