summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/openssl_encrypt_crash.phpt
blob: cf2d7f823ad4c9bc84d64dce1a0b175a27c396c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
openssl_encrypt() crash with old OpenSSL
--SKIPIF--
<?php if (!extension_loaded("openssl")) print "skip"; ?>
--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"