mirror of
https://github.com/php/php-src.git
synced 2026-04-22 23:48:14 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
28 lines
558 B
PHP
28 lines
558 B
PHP
--TEST--
|
|
Phar: copy-on-write test 5 [cache_list]
|
|
--INI--
|
|
default_charset=UTF-8
|
|
phar.cache_list={PWD}/copyonwrite5.phar.php
|
|
phar.readonly=0
|
|
--EXTENSIONS--
|
|
phar
|
|
--FILE_EXTERNAL--
|
|
files/write5.phar
|
|
--CLEAN--
|
|
<?php
|
|
unlink(__DIR__ . '/copyonwrite5/file1');
|
|
unlink(__DIR__ . '/copyonwrite5/file2');
|
|
rmdir(__DIR__ . '/copyonwrite5');
|
|
?>
|
|
--EXPECTF--
|
|
array(2) {
|
|
["file1"]=>
|
|
string(%d) "%sfile1"
|
|
["file2"]=>
|
|
string(%d) "%sfile2"
|
|
}
|
|
phar://%scopyonwrite5.phar.php%cfile1 file1
|
|
phar://%scopyonwrite5.phar.php%cfile2 file2
|
|
phar://%scopyonwrite5.phar.php%chi hi
|
|
ok
|