mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix GH-19994: openssl_get_cipher_methods inconsistent with fetched methods (#20167)
This is fixed by libctx work so this just adds test to confirm it.
The actual fix is 2f5ef4d2b7 .
This commit is contained in:
17
ext/openssl/tests/gh19994.phpt
Normal file
17
ext/openssl/tests/gh19994.phpt
Normal file
@@ -0,0 +1,17 @@
|
||||
--TEST--
|
||||
GH-19994: openssl_get_cipher_methods inconsistent with fetched methods
|
||||
--EXTENSIONS--
|
||||
openssl
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$ciphers = openssl_get_cipher_methods();
|
||||
|
||||
foreach ($ciphers as $cipher) {
|
||||
if (openssl_cipher_iv_length($cipher) === false) {
|
||||
var_dump($cipher);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
Reference in New Issue
Block a user