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