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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 29 = ?
Subscribe to this entry?

 
 [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: Fri May 17 10:01:32 2024 UTC