php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39281 glob() returns false
Submitted: 2006-10-27 16:00 UTC Modified: 2006-10-30 22:03 UTC
From: johan dot ekman1 at comhem dot se Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 5.1.6 OS: windows xp, apache
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: johan dot ekman1 at comhem dot se
New email:
PHP Version: OS:

 

 [2006-10-27 16:00 UTC] johan dot ekman1 at comhem dot se
Description:
------------
The glob function returns false when globing directories which have files containing () in the name.

Reproduce code:
---------------
$data = glob("c:/mywwwroot/data/*");
var_dump($data);

Expected result:
----------------
array(1) { [0]=> string(39) "c:/mywwwroot/data/myfile(olof)data.txt" }

Actual result:
--------------
bool (false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-27 21:50 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-10-30 21:30 UTC] johan dot ekman1 at comhem dot se
It works with the snapshot.
Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 16:01:29 2024 UTC