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