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--EXTENSIONS--
9phar
10--FILE_EXTERNAL--
11files/write6.phar
12--CLEAN--
13<?php
14unlink(__DIR__ . '/copyonwrite6/file1');
15unlink(__DIR__ . '/copyonwrite6/file2');
16rmdir(__DIR__ . '/copyonwrite6');
17?>
18--EXPECTF--
19array(2) {
20  ["file1"]=>
21  string(%d) "%sfile1"
22  ["file2"]=>
23  string(%d) "%sfile2"
24}
25phar://%scopyonwrite6.phar.php%cfile1 file1
26phar://%scopyonwrite6.phar.php%cfile2 file2
27phar://%scopyonwrite6.phar.php%chi hi
28ok
29