mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
21 lines
427 B
PHP
21 lines
427 B
PHP
--TEST--
|
|
openssl_cipher_iv_length() error test
|
|
--EXTENSIONS--
|
|
openssl
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(openssl_cipher_iv_length('unknown'));
|
|
|
|
try {
|
|
var_dump(openssl_cipher_iv_length(''));
|
|
} catch (ValueError $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Warning: openssl_cipher_iv_length(): Unknown cipher algorithm in %s on line %d
|
|
bool(false)
|
|
openssl_cipher_iv_length(): Argument #1 ($cipher_algo) must not be empty
|