php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29246 glob() nomatch returns false, again
Submitted: 2004-07-18 17:29 UTC Modified: 2004-07-18 18:44 UTC
From: claudio dot frizziero at nereal dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.3.8 OS: red hat 9
Private report: No CVE-ID: None
 [2004-07-18 17:29 UTC] claudio dot frizziero at nereal dot com
Description:
------------
glob() function returns false on error AND on no match

Reproduce code:
---------------
$list = glob("/emptydirectory/*");
var_dump ($list);

Expected result:
----------------
array()

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-18 18:44 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 02 15:01:31 2024 UTC