summaryrefslogtreecommitdiff
path: root/ext/phar/tests/cache_list/files/write16.phar.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/cache_list/files/write16.phar.inc')
-rw-r--r--ext/phar/tests/cache_list/files/write16.phar.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/phar/tests/cache_list/files/write16.phar.inc b/ext/phar/tests/cache_list/files/write16.phar.inc
new file mode 100644
index 0000000..b7a1b38
--- /dev/null
+++ b/ext/phar/tests/cache_list/files/write16.phar.inc
@@ -0,0 +1,17 @@
+<?php
+
+$fname = dirname(__FILE__) . '/write16.phar';
+@unlink($fname);
+
+$phar = new Phar($fname);
+$phar->setStub('<?php
+$p = new Phar(__FILE__);
+var_dump(isset($p["test.txt"]));
+unset($p["test.txt"]);
+var_dump(isset($p["test.txt"]));
+echo "ok\n";
+__HALT_COMPILER();
+?>');
+$phar['test.txt'] = "<?php __HALT"."_COMPILER();";
+$phar['test2.txt'] = "<?php __HALT"."_COMPILER();";
+?>