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
7detect_unicode=0
8--SKIPIF--
9<?php if (!extension_loaded("phar")) die("skip"); ?>
10--FILE--
11<?php
12var_dump(file_exists('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'));
13Phar::mount('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt', 'phar://' . dirname(__FILE__) . '/files/write4.phar/tobemounted');
14var_dump(file_exists('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'), file_get_contents('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'));
15?>
16===DONE===
17--EXPECT--
18bool(false)
19bool(true)
20string(2) "hi"
21===DONE===
22