mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
18 lines
416 B
PHP
18 lines
416 B
PHP
--TEST--
|
|
Phar: #72928 (Out of bound when verify signature of zip phar in phar_parse_zipfile)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
chdir(__DIR__);
|
|
try {
|
|
$phar = new PharData('bug72928.zip');
|
|
var_dump($phar);
|
|
} catch(UnexpectedValueException $e) {
|
|
print $e->getMessage()."\n";
|
|
}
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
phar error: signature cannot be read in zip-based phar "%sbug72928.zip"
|
|
DONE
|