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