diff options
Diffstat (limited to 'ext/phar/tests/cache_list/files/write7.phar.inc')
-rw-r--r-- | ext/phar/tests/cache_list/files/write7.phar.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/phar/tests/cache_list/files/write7.phar.inc b/ext/phar/tests/cache_list/files/write7.phar.inc new file mode 100644 index 0000000..ef5b8b2 --- /dev/null +++ b/ext/phar/tests/cache_list/files/write7.phar.inc @@ -0,0 +1,18 @@ +<?php + +$fname = dirname(__FILE__) . '/write7.phar'; +@unlink($fname); + +$phar = new Phar($fname); +$phar->setStub('<?php +$p = new Phar(__FILE__); +var_dump(file_exists("phar://" . __FILE__ . "/test.txt")); +$p->delete("test.txt"); +clearstatcache(); +var_dump(file_exists("phar://" . __FILE__ . "/test.txt")); +echo "ok\n"; +__HALT_COMPILER(); +?>'); +$phar['test.txt'] = "hi +"; +?> |