ID: 41914 Updated by: [EMAIL PROTECTED] Reported By: pcdinh at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Windows XP Sp2 PHP Version: Irrelevant New Comment:
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. Function removed. Previous Comments: ------------------------------------------------------------------------ [2007-07-06 08:39:40] pcdinh at gmail dot com Description: ------------ The method getChildren of DirectoryIterator does not exists in PHP 5.2.3 and PHP 5.2.4 dev but the PHP Manual does not say anything about it. Reproduce code: --------------- dataDir = './data'; $directoryIterator = new DirectoryIterator($dataDir); foreach ($directoryIterator as $idDir) { if ($directoryIterator->isDot()) { continue; } if ($directoryIterator->isDir()) { $companyId = $idDir->getFileName(); // Report directory iterator $subDirIterator = $idDir->getChildren(); //bug } } Expected result: ---------------- DirectoryIterator::getChildren() should return a RecursiveDirectoryIterator as stated in the PHP Manual Actual result: -------------- Fatal error: Call to undefined method DirectoryIterator::getChildren() in D:\wvbsrc\newswire\Edinet\test.php on line 18 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41914&edit=1