xref: /PHP-5.6/ext/phar/tests/032.phpt (revision 14d53417)
1--TEST--
2Phar: require hash
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--INI--
6phar.require_hash=1
7--FILE--
8<?php
9
10$pharconfig = 0;
11
12require_once 'files/phar_oo_test.inc';
13
14try {
15Phar::loadPhar($fname);
16} catch (Exception $e) {
17echo $e->getMessage();
18}
19
20?>
21===DONE===
22--CLEAN--
23<?php
24unlink(dirname(__FILE__) . '/files/032.phar.php');
25__halt_compiler();
26?>
27--EXPECTF--
28
29phar "%s032.phar.php" does not have a signature===DONE===