summaryrefslogtreecommitdiff
path: root/ext/phar/tests/cache_list/files/write4.phar.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/cache_list/files/write4.phar.inc')
-rw-r--r--ext/phar/tests/cache_list/files/write4.phar.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/phar/tests/cache_list/files/write4.phar.inc b/ext/phar/tests/cache_list/files/write4.phar.inc
new file mode 100644
index 0000000..5b476ed
--- /dev/null
+++ b/ext/phar/tests/cache_list/files/write4.phar.inc
@@ -0,0 +1,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";
+?>