mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
17 lines
371 B
PHP
17 lines
371 B
PHP
--TEST--
|
|
Phar: bug #71498: Out-of-Bound Read in phar_parse_zipfile()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$p = new PharData(__DIR__."/bug71498.zip");
|
|
} catch(UnexpectedValueException $e) {
|
|
echo $e->getMessage();
|
|
}
|
|
?>
|
|
|
|
DONE
|
|
--EXPECTF--
|
|
phar error: end of central directory not found in zip-based phar "%s/bug71498.zip"
|
|
DONE
|