1--TEST-- 2Phar::mapPhar too many manifest entries 3--SKIPIF-- 4<?php if (!extension_loaded("phar")) die("skip");?> 5--INI-- 6phar.require_hash=0 7detect_unicode=0 8--FILE-- 9<?php 10$file = b"<?php 11Phar::mapPhar('hio'); 12__HALT_COMPILER(); ?>"; 13$file .= (binary) pack(b'VVnVVV', 500, 500, 0x1000, 0x00000000, 0, 0) . (binary) str_repeat((binary)'A', 500); 14file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file); 15try { 16include dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; 17} catch (Exception $e) { 18echo $e->getMessage(); 19} 20?> 21--CLEAN-- 22<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> 23--EXPECTF-- 24internal corruption of phar "%s009.phar.php" (too many manifest entries for size of manifest) 25