mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
25 lines
469 B
PHP
25 lines
469 B
PHP
--TEST--
|
|
Phar: copy-on-write test 10 [cache_list]
|
|
--INI--
|
|
default_charset=UTF-8
|
|
phar.cache_list={PWD}/copyonwrite10.phar.php
|
|
phar.readonly=0
|
|
--EXTENSIONS--
|
|
phar
|
|
--FILE_EXTERNAL--
|
|
files/write10.phar
|
|
--EXPECT--
|
|
string(214) "<?php
|
|
$p = new Phar(__FILE__);
|
|
var_dump($p->getStub());
|
|
$p2 = new Phar(__FILE__);
|
|
$a = fopen("phar://" . __FILE__ . "/test.txt", "r");
|
|
$p->setStub($a);
|
|
echo $p2->getStub(),"\n";
|
|
echo "ok\n";
|
|
__HALT_COMPILER(); ?>
|
|
"
|
|
<?php __HALT_COMPILER(); ?>
|
|
|
|
ok
|