summaryrefslogtreecommitdiff
path: root/ext/phar/tests/007.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/007.phpt')
-rw-r--r--ext/phar/tests/007.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/phar/tests/007.phpt b/ext/phar/tests/007.phpt
new file mode 100644
index 0000000..a13c2a4
--- /dev/null
+++ b/ext/phar/tests/007.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Phar::mapPhar manifest too big
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip");?>
+--FILE--
+<?php
+try {
+Phar::mapPhar('hio');
+} catch (Exception $e) {
+echo $e->getMessage();
+}
+__HALT_COMPILER(); ?>~~~~
+--EXPECTF--
+manifest cannot be larger than 100 MB in phar "%s"