Skip to content

Commit 2e4dca5

Browse files
authored
Fix phpGH-19994: openssl_get_cipher_methods inconsistent with fetched methods (php#20167)
This is fixed by libctx work so this just adds test to confirm it. The actual fix is 2f5ef4d .
1 parent 43970e3 commit 2e4dca5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ext/openssl/tests/gh19994.phpt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
GH-19994: openssl_get_cipher_methods inconsistent with fetched methods
3+
--EXTENSIONS--
4+
openssl
5+
--FILE--
6+
<?php
7+
8+
$ciphers = openssl_get_cipher_methods();
9+
10+
foreach ($ciphers as $cipher) {
11+
if (openssl_cipher_iv_length($cipher) === false) {
12+
var_dump($cipher);
13+
}
14+
}
15+
16+
?>
17+
--EXPECT--

0 commit comments

Comments
 (0)