note 110880 added to class.recursivedirectoryiterator

From: Date: Tue, 18 Dec 2012 19:52:23 +0000
Subject: note 110880 added to class.recursivedirectoryiterator
Groups: php.notes 
Request: Send a blank email to php-notes+get-192585@lists.php.net to get a copy of this message
In addition to the UnexpectedValueException note from antennen (thanks for your note - it saved me a lot of time): instead of <?php ... return parent::getChildren(); ... ?> you should use <?php ... return new IgnorantRecursiveDirectoryIterator(); ... ?> because else the standard RecursiveDirectoyIterator is returned and the exception may occur on the next level. (maybe one could just changed the other note and delete this? thanks) ---- Server IP: 69.147.83.199 Probable Submitter: 78.55.100.89 ---- Manual Page -- http://php.net/manual/en/class.recursivedirectoryiterator.php Edit -- https://master.php.net/note/edit/110880 Del: integrated -- https://master.php.net/note/delete/110880/integrated Del: useless -- https://master.php.net/note/delete/110880/useless Del: bad code -- https://master.php.net/note/delete/110880/bad+code Del: spam -- https://master.php.net/note/delete/110880/spam Del: non-english -- https://master.php.net/note/delete/110880/non-english Del: in docs -- https://master.php.net/note/delete/110880/in+docs Del: other reasons-- https://master.php.net/note/delete/110880 Reject -- https://master.php.net/note/reject/110880 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192585) next »