2005-12-07 01:47:49 +00:00
|
|
|
--TEST--
|
2006-01-01 23:05:42 +00:00
|
|
|
Phar::mapPhar truncated manifest/improper params
|
2005-12-07 01:47:49 +00:00
|
|
|
--SKIPIF--
|
2008-01-04 16:26:44 +00:00
|
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
2005-12-07 01:47:49 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2007-01-29 06:02:19 +00:00
|
|
|
try {
|
2006-01-01 22:58:12 +00:00
|
|
|
Phar::mapPhar(5, 'hio', 'hi');
|
2006-01-11 00:50:33 +00:00
|
|
|
|
|
|
|
Phar::mapPhar();
|
2007-01-29 06:02:19 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
echo $e->getMessage();
|
|
|
|
}
|
2005-12-08 07:34:16 +00:00
|
|
|
__HALT_COMPILER(); ?>
|
2005-12-07 01:47:49 +00:00
|
|
|
--EXPECTF--
|
2007-05-29 09:13:57 +00:00
|
|
|
Warning: Phar::mapPhar() expects at most 2 parameters, 3 given in %s002.php on line %d
|
2007-05-27 15:47:52 +00:00
|
|
|
internal corruption of phar "%s002.php" (truncated manifest at manifest length)
|