1--TEST--
2Phar: copy-on-write test 4a [cache_list]
3--INI--
4default_charset=UTF-8
5phar.cache_list={PWD}/copyonwrite4.phar.php
6phar.readonly=0
7--SKIPIF--
8<?php if (!extension_loaded("phar")) die("skip"); ?>
9--FILE--
10<?php
11var_dump(file_exists('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'));
12Phar::mount('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt', 'phar://' . dirname(__FILE__) . '/files/write4.phar/tobemounted');
13var_dump(file_exists('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'), file_get_contents('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'));
14?>
15===DONE===
16--EXPECT--
17bool(false)
18bool(true)
19string(2) "hi"
20===DONE===