mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
c42a870b7e
# We actually need support to select the signature type somehow
23 lines
391 B
PHP
Executable File
23 lines
391 B
PHP
Executable File
--TEST--
|
|
Phar::setSupportedSignatures()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) print "skip"; ?>
|
|
<?php if ( extension_loaded("hash")) print "skip extension hash conflicts"; ?>
|
|
--INI--
|
|
phar.require_hash=0
|
|
phar.readonly=0
|
|
--FILE--
|
|
<?php
|
|
var_dump(Phar::getSupportedSignatures());
|
|
?>
|
|
===DONE===
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[0]=>
|
|
string(3) "MD5"
|
|
[1]=>
|
|
string(5) "SHA-1"
|
|
}
|
|
===DONE===
|