苹果Mac OS下使用gmssl_sm2_encrypt and gmssl_sm2_decrypt 测试失败
Opened this issue · 0 comments
heyangfan commented
gmssl version:3.1.0
mac os: 12.6.7
php version :8.1.12
在使用gmssl_sm2_encrypt方法以及gmssl_sm2_decrypt均失败。
直接在命令行使用gmssl sm2encrypt与decrypt未发现问题。
=====================================================================
PHP : /usr/local/Cellar/php/8.1.12/bin/php
PHP_SAPI : cli
PHP_VERSION : 8.1.12
ZEND_VERSION: 4.1.12
PHP_OS : Darwin - Darwin heyangfandeMacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64
INI actual : /Users/heyangfan/Downloads/GmSSL-PHP-main/tmp-php.ini
More .INIs :
PHP : /usr/local/Cellar/php/8.1.12/bin/php-cgi
PHP_SAPI : cgi-fcgi
PHP_VERSION : 8.1.12
ZEND_VERSION: 4.1.12
PHP_OS : Darwin - Darwin heyangfandeMacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64
INI actual : /Users/heyangfan/Downloads/GmSSL-PHP-main/tmp-php.ini
More .INIs :
PHP : /usr/local/Cellar/php/8.1.12/bin/phpdbg
PHP_SAPI : phpdbg
PHP_VERSION : 8.1.12
ZEND_VERSION: 4.1.12
PHP_OS : Darwin - Darwin heyangfandeMacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64
INI actual : /Users/heyangfan/Downloads/GmSSL-PHP-main/tmp-php.ini
More .INIs :
CWD : /Users/heyangfan/Downloads/GmSSL-PHP-main
Extra dirs :
VALGRIND : Not used
TIME START 2023-07-19 05:57:55
PASS Check if gmssl is loaded [tests/cert.phpt]
PASS Check if gmssl is loaded [tests/consts.phpt]
PASS Check if gmssl is loaded [tests/rand_bytes.phpt]
FAIL Check if gmssl is loaded [tests/sm2.phpt]
PASS Check if gmssl is loaded [tests/sm3.phpt]
PASS Check if gmssl is loaded [tests/sm3_hmac.phpt]
PASS Check if gmssl is loaded [tests/sm3_pbkdf2.phpt]
PASS Check if gmssl is loaded [tests/sm4.phpt]
PASS Check if gmssl is loaded [tests/sm4_cbc.phpt]
PASS Check if gmssl is loaded [tests/sm4_ctr.phpt]
FAIL Check if gmssl is loaded [tests/sm4_gcm.phpt]
PASS Check if gmssl is loaded [tests/sm9_enc.phpt]
PASS Check if gmssl is loaded [tests/sm9_sign.phpt]
PASS Check if gmssl is loaded [tests/zuc.phpt]
TIME END 2023-07-19 05:58:00