mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
24 lines
440 B
PHP
24 lines
440 B
PHP
--TEST--
|
|
Phar: copy-on-write test 9 [cache_list]
|
|
--INI--
|
|
default_charset=UTF-8
|
|
phar.cache_list={PWD}/copyonwrite9.phar.php
|
|
phar.readonly=0
|
|
--EXTENSIONS--
|
|
phar
|
|
--FILE_EXTERNAL--
|
|
files/write9.phar
|
|
--EXPECT--
|
|
string(188) "<?php
|
|
$p = new Phar(__FILE__);
|
|
var_dump($p->getStub());
|
|
$p2 = new Phar(__FILE__);
|
|
$p->setStub("<?php __HALT"."_COMPILER();");
|
|
echo $p2->getStub(),"\n";
|
|
echo "ok\n";
|
|
__HALT_COMPILER(); ?>
|
|
"
|
|
<?php __HALT_COMPILER(); ?>
|
|
|
|
ok
|