xref: /PHP-5.3/ext/openssl/tests/bug54060.phpt (revision 5261861d)
1--TEST--
2Bug #54060 (Memory leak in openssl_encrypt)
3--SKIPIF--
4<?php if (!extension_loaded("openssl")) die("skip"); ?>
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, false, '1qazxsw2');
14echo "Done";
15?>
16--EXPECT--
17Done
18