php-src/ext/phar/tests/002.phpt

17 lines
443 B
Plaintext
Raw Normal View History

2005-12-07 01:47:49 +00:00
--TEST--
Phar::mapPhar truncated manifest/improper params
2005-12-07 01:47:49 +00:00
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
2005-12-07 01:47:49 +00:00
--FILE--
<?php
try {
2006-01-01 22:58:12 +00:00
Phar::mapPhar(5, 'hio', 'hi');
Phar::mapPhar();
} catch (Exception $e) {
echo $e->getMessage();
}
__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
internal corruption of phar "%s002.php" (truncated manifest at manifest length)