1--TEST--
2Phar: copy-on-write test 6 [cache_list]
3--INI--
4default_charset=UTF-8
5phar.cache_list={PWD}/copyonwrite6.phar.php
6phar.readonly=0
7open_basedir=
8--SKIPIF--
9<?php if (!extension_loaded("phar")) die("skip"); ?>
10<?php if (version_compare(PHP_VERSION, "5.3", "<")) die("skip PHP 5.3+ required"); ?>
11--FILE_EXTERNAL--
12files/write6.phar
13--CLEAN--
14<?php
15unlink(dirname(__FILE__) . '/copyonwrite6/file1');
16unlink(dirname(__FILE__) . '/copyonwrite6/file2');
17rmdir(dirname(__FILE__) . '/copyonwrite6');
18?>
19--EXPECTF--
20array(2) {
21  ["file1"]=>
22  string(%d) "%sfile1"
23  ["file2"]=>
24  string(%d) "%sfile2"
25}
26phar://%scopyonwrite6.phar.php%cfile1 file1
27phar://%scopyonwrite6.phar.php%cfile2 file2
28phar://%scopyonwrite6.phar.php%chi hi
29ok
30