mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
5fbeb235d2
for the contents of the exported private key to Phar->setSignatureAlgorithm, and expects the public key to be in a file named blah.phar.pubkey in the same directory as the phar blah.phar. This works with openssl static or shared and fails gracefully if openssl is not present without adding a dependency. config.w32 needs updating to match config.m4 [DOC]
24 lines
468 B
PHP
24 lines
468 B
PHP
--TEST--
|
|
Phar::getSupportedSignatures()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
<?php if (extension_loaded("hash")) die("skip extension hash conflicts"); ?>
|
|
<?php if (extension_loaded("openssl")) die("skip extension openssl loaded"); ?>
|
|
--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===
|