summaryrefslogtreecommitdiff
path: root/ext/phar/tests/cache_list/files/write15.phar.inc
blob: d30f6c88ae14e0189a9619d14d11ea078f56553f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

$fname = dirname(__FILE__) . '/write15.phar';
@unlink($fname);

$phar = new Phar($fname);
$phar->setStub('<?php
$p = new Phar(__FILE__);
var_dump(isset($p["copied"]));
$p->copy("test.txt","copied");
var_dump(isset($p["copied"]));
echo "ok\n";
__HALT_COMPILER();
?>');
$phar['test.txt'] = "<?php __HALT"."_COMPILER();";
?>