From 48050ca09d9dce6bc1a7f3e5ab74e1f010a8a0ff Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 9 Dec 2005 19:55:29 +0000 Subject: add constraint check for number of manifest entries, and test --- ext/phar/tests/009.phpt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ext/phar/tests/009.phpt (limited to 'ext/phar/tests/009.phpt') diff --git a/ext/phar/tests/009.phpt b/ext/phar/tests/009.phpt new file mode 100644 index 0000000000..d2de92dbb1 --- /dev/null +++ b/ext/phar/tests/009.phpt @@ -0,0 +1,17 @@ +--TEST-- +PHP_Archive::mapPhar improper parameters +--SKIPIF-- + +--FILE-- +"; +$file .= pack('VV', 500, 500) . str_repeat('A', 500); +file_put_contents(dirname(__FILE__) . '/008_phar.php', $file); +include dirname(__FILE__) . '/008_phar.php'; +?> +--EXPECTF-- +Fatal error: PHP_Archive::mapPhar(): too many manifest entries for size of manifest in phar "%s" in %s on line %d \ No newline at end of file -- cgit v1.2.1