mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
17 lines
398 B
PHP
17 lines
398 B
PHP
--TEST--
|
|
Phar: Phar::webPhar, open compiled file fails
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip");?>
|
|
--INI--
|
|
phar.readonly=1
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
Phar::webPhar('oopsiedaisy.phar', '/index.php');
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
__HALT_COMPILER();
|
|
?>
|
|
--EXPECTF--
|
|
internal corruption of phar "%swebphar_compilefail.php" (truncated manifest at manifest length)
|