note 116778 added to phar.buildfromiterator

From: Date: Thu, 26 Feb 2015 13:43:02 +0000
Subject: note 116778 added to phar.buildfromiterator
Groups: php.notes 
Request: Send a blank email to php-notes+get-201815@lists.php.net to get a copy of this message
You have to set a flag on the RecursiveDirectoryIterator because by default, the current (".") and parent directory ("..") are included in the listing. This leads to an error message similar to "returned a path ".." that is not in the base directory". To fix this, use "SKIP_DOTS": <?php new RecursiveDirectoryIterator( $srcRoot, FilesystemIterator::SKIP_DOTS ); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 146.52.217.4 ---- Manual Page -- http://php.net/manual/en/phar.buildfromiterator.php Edit -- https://master.php.net/note/edit/116778 Del: integrated -- https://master.php.net/note/delete/116778/integrated Del: useless -- https://master.php.net/note/delete/116778/useless Del: bad code -- https://master.php.net/note/delete/116778/bad+code Del: spam -- https://master.php.net/note/delete/116778/spam Del: non-english -- https://master.php.net/note/delete/116778/non-english Del: in docs -- https://master.php.net/note/delete/116778/in+docs Del: other reasons-- https://master.php.net/note/delete/116778 Reject -- https://master.php.net/note/reject/116778 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201815) next »