php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #27653 DirectoryIterator::getChildren() documentation error
Submitted: 2004-03-19 05:58 UTC Modified: 2004-03-23 12:09 UTC
From: fd@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.0RC1 OS: irrelevant
Private report: No CVE-ID: None
 [2004-03-19 05:58 UTC] fd@php.net
Description:
------------
It seems that DirectoryIterator::getChildren() does not exist as shown in the documentation.

http://php.net/manual/en/function.directoryiterator-getchildren.php

Should be RecrusiveDirectoryIterator::getChildren()

Reproduce code:
---------------
<?php

$DirectoryIterator = new DirectoryIterator('/var/www/foo');
var_dump($DirectoryIterator->getChildren());

?>

Expected result:
----------------
return children of directory

Actual result:
--------------
Fatal error: Call to undefined method DirectoryIterator::getChildren()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-23 12:09 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.


 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=89c481ecf1ce0ba445830e818bd8ded00c1e3473
Log: fix #27653
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 17:00:01 2025 UTC