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