xref: /PHP-8.1/ext/openssl/tests/bug54060.phpt (revision 74859783)
1--TEST--
2Bug #54060 (Memory leak in openssl_encrypt)
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7
8$data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243
9r7-89437 r892374 r894372 r894 7289r7 f  frwerfh i iurf iuryw uyrfouiwy ruy
10972439 8478942 yrhfjkdhls";
11$pass = "r23498rui324hjbnkj";
12
13openssl_encrypt($data, 'des3', $pass, 0, '1qazxsw2');
14echo "Done";
15?>
16--EXPECT--
17Done
18