1--TEST--
2openssl_cipher_key_length() error test
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7
8var_dump(openssl_cipher_key_length('unknown'));
9
10try {
11    var_dump(openssl_cipher_key_length(''));
12} catch (ValueError $e) {
13    echo $e->getMessage() . "\n";
14}
15
16?>
17--EXPECTF--
18
19Warning: openssl_cipher_key_length(): Unknown cipher algorithm in %s on line %d
20bool(false)
21openssl_cipher_key_length(): Argument #1 ($cipher_algo) cannot be empty
22