mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
c5f34c9eca
(cherry picked from commit 75ebf471ff46ec6e5ee279b3650c11d51ebaf9e3)
18 lines
413 B
PHP
18 lines
413 B
PHP
--TEST--
|
|
Phar: #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
chdir(__DIR__);
|
|
try {
|
|
$phar = new PharData('bug73035.tar');
|
|
var_dump($phar);
|
|
} catch(UnexpectedValueException $e) {
|
|
print $e->getMessage()."\n";
|
|
}
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
phar error: tar-based phar "%sbug73035.tar" signature cannot be read
|
|
DONE
|