php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60443 Readdir also returns folders
Submitted: 2011-12-04 23:04 UTC Modified: 2011-12-04 23:34 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: joel at walker9 dot net Assigned: frozenfire (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
 [2011-12-04 23:04 UTC] joel at walker9 dot net
Description:
------------
---
From manual page: http://www.php.net/function.readdir
---

The readdir function returns both files and folders in a directory, but the 
documentation only mentions readdir returning filenames.

Documentation should be changed to acknowledge that readdir will also return 
directories.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-04 23:34 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=320392
Log: Clarified that readdir will return all entries in a directory, not just the files. Updated examples to reflect that. Closes bug #60443.
 [2011-12-04 23:34 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2011-12-04 23:34 UTC] frozenfire@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: Thu Oct 08 06:00:01 2026 UTC