dis-bench / src /php /php-src /ext /phar /tests /002.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
449 Bytes
--TEST--
Phar::mapPhar truncated manifest/improper params
--EXTENSIONS--
phar
--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 arguments, 3 given
internal corruption of phar "%s002.php" (truncated manifest at manifest length)