summaryrefslogtreecommitdiff
path: root/ext/phar/tests/006.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/006.phpt')
-rw-r--r--ext/phar/tests/006.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/phar/tests/006.phpt b/ext/phar/tests/006.phpt
new file mode 100644
index 0000000..b2e8b29
--- /dev/null
+++ b/ext/phar/tests/006.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Phar::mapPhar truncated manifest (manifest length truncated)
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip");?>
+--FILE--
+<?php
+try {
+Phar::mapPhar('hio');
+} catch (Exception $e) {
+echo $e->getMessage();
+}
+__HALT_COMPILER(); ?>
+--EXPECTF--
+internal corruption of phar "%s" (truncated manifest at manifest length)