|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-16 12:44 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 02:00:01 2025 UTC |
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