blob: 5b476ed0a39f727235f90daaf72c6d304e588480 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
$fname = dirname(__FILE__) . '/write4.phar';
@unlink($fname);
$phar = new Phar($fname);
$phar->setStub('<?php
var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));
clearstatcache();
Phar::mount("test.txt", "phar://" . __FILE__ . "/tobemounted");
var_dump(file_exists("phar://" . __FILE__ . "/test.txt"), file_get_contents("phar://" . __FILE__ . "/test.txt"));
echo "ok\n";
__HALT_COMPILER();
?>');
$phar['tobemounted'] = "hi";
?>
|