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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 06:01:32 2025 UTC