1--TEST--
2Phar::getSupportedSignatures()
3--SKIPIF--
4<?php
5if (!extension_loaded("phar")) die("skip");
6if (!extension_loaded("hash")) die("skip extension hash required");
7$arr = Phar::getSupportedSignatures();
8if (!in_array("OpenSSL", $arr)) die("skip openssl support required");
9if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
10?>
11--INI--
12phar.require_hash=0
13phar.readonly=0
14--FILE--
15<?php
16var_dump(Phar::getSupportedSignatures());
17?>
18===DONE===
19--EXPECT--
20array(5) {
21  [0]=>
22  string(3) "MD5"
23  [1]=>
24  string(5) "SHA-1"
25  [2]=>
26  string(7) "SHA-256"
27  [3]=>
28  string(7) "SHA-512"
29  [4]=>
30  string(7) "OpenSSL"
31}
32===DONE===
33