mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
18 lines
481 B
Plaintext
18 lines
481 B
Plaintext
|
--TEST--
|
||
|
Phar: corrupted zip (central directory offset incorrect)
|
||
|
--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/cdir_offset.zip');
|
||
|
} catch (Exception $e) {
|
||
|
echo $e->getMessage() . "\n";
|
||
|
}
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
phar error: corrupted central directory entry, no magic signature in zip-based phar "%scdir_offset.zip"
|
||
|
===DONE===
|