default_charset=UTF-8
phar.cache_list={PWD}/copyonwrite6.phar.php
phar.readonly=0
+open_basedir=
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
phar://%scopyonwrite6.phar.php%cfile1 file1
phar://%scopyonwrite6.phar.php%cfile2 file2
phar://%scopyonwrite6.phar.php%chi hi
-ok
\ No newline at end of file
+ok
mkdir($d);
file_put_contents($d . "/file1", "file1\n");
file_put_contents($d . "/file2", "file2\n");
-var_dump($phar->buildFromIterator(new RecursiveDirectoryIterator($d),$d));
+var_dump($phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP_DOTS),$d));
$phar2 = new Phar(__FILE__);
$arr = array();
foreach ($phar2 as $name => $file) {