summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/bug61124.phpt
blob: f92628757a523fa1dc75ed615fe915460d50d623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #61124: Segmentation fault with openssl_decrypt
--SKIPIF--
<?php if (!extension_loaded("openssl")) die("skip"); ?>
--FILE--
<?php
var_dump(
    openssl_decrypt(
        'kzo w2RMExUTYQXW2Xzxmg==',
        'aes-128-cbc',
        'pass',
        false,
        'pass'
    )
);
?>
--EXPECTF--
Warning: 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
bool(false)