Annotation of embedaddon/php/ext/phar/tests/cache_list/copyonwrite4a.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: copy-on-write test 4a [cache_list]
3: --INI--
4: default_charset=UTF-8
5: phar.cache_list={PWD}/copyonwrite4.phar.php
6: phar.readonly=0
7: --SKIPIF--
8: <?php if (!extension_loaded("phar")) die("skip"); ?>
9: --FILE--
10: <?php
11: var_dump(file_exists('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'));
12: Phar::mount('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt', 'phar://' . dirname(__FILE__) . '/files/write4.phar/tobemounted');
13: var_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--
17: bool(false)
18: bool(true)
19: string(2) "hi"
20: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>