xref: /PHP-8.0/ext/openssl/tests/bug61124.phpt (revision 7aacc705)
1--TEST--
2Bug #61124: Segmentation fault with openssl_decrypt
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip");
6--FILE--
7<?php
8var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', false, 'pass'));
9?>
10--EXPECTF--
11Warning: 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
12bool(false)
13