php-src/ext/openssl/tests/openssl_encrypt_crash.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

12 lines
312 B
PHP

--TEST--
openssl_encrypt() crash with old OpenSSL
--EXTENSIONS--
openssl
--FILE--
<?php
openssl_encrypt('', 'AES-128-CBC', 'foo');
var_dump("done");
?>
--EXPECTF--
Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended in %s on line %d
string(4) "done"