mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
18 lines
463 B
PHP
18 lines
463 B
PHP
--TEST--
|
|
Phar: corrupted zip (truncated file comment)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
new PharData(dirname(__FILE__) . '/files/filecomment.zip');
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
phar error: corrupt zip archive, zip file comment truncated in zip-based phar "%sfilecomment.zip"
|
|
===DONE===
|