mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
16 lines
443 B
PHP
16 lines
443 B
PHP
<?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";
|
|
?>
|