mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
Add extension gmssl support (#544)
* Add extension gmssl support * cs-fix * Add framework for gmssl
This commit is contained in:
8
src/globals/ext-tests/gmssl.php
Normal file
8
src/globals/ext-tests/gmssl.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
assert(function_exists('gmssl_rand_bytes'));
|
||||
assert(function_exists('gmssl_sm3'));
|
||||
|
||||
assert(bin2hex(gmssl_sm3('123456')) === '207cf410532f92a47dee245ce9b11ff71f578ebd763eb3bbea44ebd043d018fb');
|
||||
@@ -19,8 +19,8 @@ $upx = true;
|
||||
|
||||
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
||||
$extensions = match (PHP_OS_FAMILY) {
|
||||
'Linux', 'Darwin' => 'redis,igbinary,msgpack',
|
||||
'Windows' => 'redis,igbinary,msgpack',
|
||||
'Linux', 'Darwin' => 'gmssl',
|
||||
'Windows' => 'gmssl',
|
||||
};
|
||||
|
||||
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
|
||||
|
||||
Reference in New Issue
Block a user