php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37660 Note required on glob() doc page
Submitted: 2006-06-01 02:26 UTC Modified: 2006-08-11 18:22 UTC
From: iain at iaindooley dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
 [2006-06-01 02:26 UTC] iain at iaindooley dot com
Description:
------------
http://au2.php.net/glob 

on the manual page for glob(), it says that:

Returns an array containing the matched files/directories or FALSE on error

It would be useful to have a note here that if no files match, it returns an empty array rather than FALSE.

When I first read this, my interpretation was that no matching files would constitute an error.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-11 18:22 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Feb 25 18:00:01 2026 UTC