Edit report at http://bugs.php.net/bug.php?id=52853&edit=1
ID: 52853
Comment by: jon at humaninternals dot com
Reported by: patrice dot edeline at inpec dot fr
Summary: glob
Status: Open
Type: Bug
Package: *General Issues
Operating System: windows 2003
PHP Version: 5.2.14
Block user comment: N
New Comment:
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 ?
Previous Comments:
------------------------------------------------------------------------
[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] [email protected]
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 http://bugs.php.net/bug.php?id=52853&edit=1