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