note 107803 added to class.recursiveiteratoriterator

From: Date: Tue, 06 Mar 2012 17:28:08 +0000
Subject: note 107803 added to class.recursiveiteratoriterator
Groups: php.notes 
Request: Send a blank email to php-notes+get-186510@lists.php.net to get a copy of this message
A gotcha when using RecursiveIteratorIterator with vfsStream for testing. When creating the root directory in vfsStream make sure to not append a slash, otherwise the RecursiveIteratorIterator will not iterate through your virtual filesystem. i.e. $virtualDir = "test" // not "test/" vfsStream::setup($virtualDir); ... ---- Server IP: 69.147.83.197 Probable Submitter: 24.22.33.249 ---- Manual Page -- http://www.php.net/manual/en/class.recursiveiteratoriterator.php Edit -- https://master.php.net/note/edit/107803 Del: integrated -- https://master.php.net/note/delete/107803/integrated Del: useless -- https://master.php.net/note/delete/107803/useless Del: bad code -- https://master.php.net/note/delete/107803/bad+code Del: spam -- https://master.php.net/note/delete/107803/spam Del: non-english -- https://master.php.net/note/delete/107803/non-english Del: in docs -- https://master.php.net/note/delete/107803/in+docs Del: other reasons-- https://master.php.net/note/delete/107803 Reject -- https://master.php.net/note/reject/107803 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186510) next »