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 enabled");
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?>
20--EXPECT--
21array(4) {
22  [0]=>
23  string(3) "MD5"
24  [1]=>
25  string(5) "SHA-1"
26  [2]=>
27  string(7) "SHA-256"
28  [3]=>
29  string(7) "SHA-512"
30}
31===DONE===
32