summaryrefslogtreecommitdiff
path: root/ext/phar/tests/bug79797.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/bug79797.phpt')
-rw-r--r--ext/phar/tests/bug79797.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/phar/tests/bug79797.phpt b/ext/phar/tests/bug79797.phpt
new file mode 100644
index 0000000000..761e5379e0
--- /dev/null
+++ b/ext/phar/tests/bug79797.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #79797 (Use of freed hash key in the phar_parse_zipfile function)
+--SKIPIF--
+<?php
+if (!extension_loaded('phar')) die('skip phar extension not available');
+?>
+--INI--
+phar.cache_list={PWD}/bug79797.phar
+--FILE--
+<?php
+echo "done\n";
+?>
+--EXPECT--
+done