mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
b9e8695e75
- config.m4 needs bringing into line with config.w32, there may be broken behaviour under *nix until this is done
32 lines
625 B
PHP
32 lines
625 B
PHP
--TEST--
|
|
Phar::getSupportedSignatures()
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("phar")) die("skip");
|
|
if (!extension_loaded("hash")) die("skip extension hash required");
|
|
if (extension_loaded("openssl")) die("skip extension openssl loaded");
|
|
$arr = Phar::getSupportedSignatures();
|
|
if (in_array("OpenSSL", $arr)) die ("skip native openssl support enabled");
|
|
?>
|
|
--INI--
|
|
phar.require_hash=0
|
|
phar.readonly=0
|
|
--FILE--
|
|
<?php
|
|
var_dump(Phar::getSupportedSignatures());
|
|
?>
|
|
===DONE===
|
|
?>
|
|
--EXPECT--
|
|
array(4) {
|
|
[0]=>
|
|
string(3) "MD5"
|
|
[1]=>
|
|
string(5) "SHA-1"
|
|
[2]=>
|
|
string(7) "SHA-256"
|
|
[3]=>
|
|
string(7) "SHA-512"
|
|
}
|
|
===DONE===
|