Skip to content

Commit 8f438d1

Browse files
author
Greg Beaver
committed
MFB: fix test
1 parent 0186949 commit 8f438d1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ext/phar/tests/cache_list/copyonwrite6.phar.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Phar: copy-on-write test 6 [cache_list]
44
default_charset=UTF-8
55
phar.cache_list={PWD}/copyonwrite6.phar.php
66
phar.readonly=0
7+
open_basedir=
78
--SKIPIF--
89
<?php if (!extension_loaded("phar")) die("skip"); ?>
910
--FILE_EXTERNAL--
@@ -24,4 +25,4 @@ array(2) {
2425
phar://%scopyonwrite6.phar.php%cfile1 file1
2526
phar://%scopyonwrite6.phar.php%cfile2 file2
2627
phar://%scopyonwrite6.phar.php%chi hi
27-
ok
28+
ok
39 Bytes
Binary file not shown.

ext/phar/tests/cache_list/files/write6.phar.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $d = dirname(__FILE__) . "/copyonwrite6";
1010
mkdir($d);
1111
file_put_contents($d . "/file1", "file1\n");
1212
file_put_contents($d . "/file2", "file2\n");
13-
var_dump($phar->buildFromIterator(new RecursiveDirectoryIterator($d),$d));
13+
var_dump($phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP_DOTS),$d));
1414
$phar2 = new Phar(__FILE__);
1515
$arr = array();
1616
foreach ($phar2 as $name => $file) {

0 commit comments

Comments
 (0)