summaryrefslogtreecommitdiff
path: root/ext/phar/tests/webphar_compilefail.phpt
blob: 7d89509f77b7984ff5affbfaeaf30707ae8baa08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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)