xref: /PHP-7.1/ext/openssl/tests/bug61124.phpt (revision b20bcbc3)
1--TEST--
2Bug #61124: Segmentation fault with openssl_decrypt
3--SKIPIF--
4<?php if (!extension_loaded("openssl")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(
8    openssl_decrypt(
9        'kzo w2RMExUTYQXW2Xzxmg==',
10        'aes-128-cbc',
11        'pass',
12        false,
13        'pass'
14    )
15);
16?>
17--EXPECTF--
18Warning: openssl_decrypt(): IV passed is only 4 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in %s on line %d
19bool(false)
20