mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-25 09:46:28 +08:00
Add PHP Extension for GmSSL
View http://gmssl.org/docs/php-api.html for more info.
This commit is contained in:
12
php/ext/openssl/tests/bug61124.phpt
Normal file
12
php/ext/openssl/tests/bug61124.phpt
Normal file
@@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
Bug #61124: Segmentation fault with openssl_decrypt
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded("openssl")) die("skip");
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', false, 'pass'));
|
||||
|
||||
--EXPECTF--
|
||||
Warning: openssl_decrypt(): IV passed is only 4 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in %s on line %d
|
||||
bool(false)
|
||||
Reference in New Issue
Block a user