xref: /PHP-8.2/ext/phar/tests/032.phpt (revision 74859783)
1--TEST--
2Phar: require hash
3--EXTENSIONS--
4phar
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(__DIR__ . '/files/032.phar.php');
25__halt_compiler();
26?>
27--EXPECTF--
28phar "%s032.phar.php" does not have a signature===DONE===
29