xref: /PHP-5.4/ext/phar/tests/002.phpt (revision 16b4d8e0)
1--TEST--
2Phar::mapPhar truncated manifest/improper params
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7try {
8Phar::mapPhar(5, 'hio', 'hi');
9
10Phar::mapPhar();
11} catch (Exception $e) {
12	echo $e->getMessage();
13}
14__HALT_COMPILER(); ?>
15--EXPECTF--
16Warning: Phar::mapPhar() expects at most 2 parameters, 3 given in %s002.php on line %d
17internal corruption of phar "%s002.php" (truncated manifest at manifest length)