php-8.0.30-src/ext/phar/tests/zip/corrupt_009.phpt

15 lines
398 B
PHP

--TEST--
Phar: corrupted zip (extra field way too long)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
try {
new PharData(__DIR__ . '/files/extralen_toolong.zip');
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECTF--
phar error: Unable to process extra field header for file in central directory in zip-based phar "%sextralen_toolong.zip"