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