1--TEST--
2Phar: copy-on-write test 9 [cache_list]
3--INI--
4default_charset=UTF-8
5phar.cache_list={PWD}/copyonwrite9.phar.php
6phar.readonly=0
7--EXTENSIONS--
8phar
9--FILE_EXTERNAL--
10files/write9.phar
11--EXPECT--
12string(188) "<?php
13$p = new Phar(__FILE__);
14var_dump($p->getStub());
15$p2 = new Phar(__FILE__);
16$p->setStub("<?php __HALT"."_COMPILER();");
17echo $p2->getStub(),"\n";
18echo "ok\n";
19__HALT_COMPILER(); ?>
20"
21<?php __HALT_COMPILER(); ?>
22
23ok
24