From 5c6a25e7502a7ebc66518bfdeb63b02dbf6cc57c Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 15 Feb 2009 21:43:39 +0000 Subject: [PATCH] fix the last remaining failing test (explicitly pass in SKIP_DOTS to directory iterator) --- .../tests/cache_list/copyonwrite6.phar.phpt | 3 ++- ext/phar/tests/cache_list/files/write6.phar | Bin 572 -> 611 bytes ext/phar/tests/cache_list/files/write6.phar.inc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/phar/tests/cache_list/copyonwrite6.phar.phpt b/ext/phar/tests/cache_list/copyonwrite6.phar.phpt index 083a14178b..6d6d56187e 100644 --- a/ext/phar/tests/cache_list/copyonwrite6.phar.phpt +++ b/ext/phar/tests/cache_list/copyonwrite6.phar.phpt @@ -4,6 +4,7 @@ Phar: copy-on-write test 6 [cache_list] default_charset=UTF-8 phar.cache_list={PWD}/copyonwrite6.phar.php phar.readonly=0 +open_basedir= --SKIPIF-- --FILE_EXTERNAL-- @@ -24,4 +25,4 @@ array(2) { 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 diff --git a/ext/phar/tests/cache_list/files/write6.phar b/ext/phar/tests/cache_list/files/write6.phar index 68a4a8674dd0d42b44cab553a35506613609c57a..8aa92131e64199143352365b1c4f4e12f26a04b4 100644 GIT binary patch delta 102 zcmdnP@|b197j+$lpw#5jqTesDlTBySWlyZ0Sbpim0 C%Omsv delta 63 zcmaFNvWI2Dm(9|QqKw9g`#*UwGcYhzRpr0k#t38pK}IIm-pC}s$^wxxh4M`^cgyo- QdhJZDX97yOJNY^R0HZ|{@Bjb+ diff --git a/ext/phar/tests/cache_list/files/write6.phar.inc b/ext/phar/tests/cache_list/files/write6.phar.inc index 4010b60779..39b1e8158c 100644 --- a/ext/phar/tests/cache_list/files/write6.phar.inc +++ b/ext/phar/tests/cache_list/files/write6.phar.inc @@ -10,7 +10,7 @@ $d = dirname(__FILE__) . "/copyonwrite6"; 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) { -- 2.50.1