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