xref: /PHP-5.6/ext/openssl/tests/bug54061.phpt (revision 30f19bd5)
1--TEST--
2Bug #54061 (Memory leak in openssl_decrypt)
3--SKIPIF--
4<?php if (!extension_loaded("openssl")) die("skip"); ?>
5--FILE--
6<?php
7$data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243
8r7-89437 r892374 r894372 r894 7289r7 f  frwerfh i iurf iuryw uyrfouiwy ruy
9972439 8478942 yrhfjkdhls";
10$pass = "r23498rui324hjbnkj";
11
12$cr = openssl_encrypt($data, 'des3', $pass, 0, '1qazxsw2');
13$dcr = openssl_decrypt($cr, 'des3', $pass, 0, '1qazxsw2');
14echo "Done";
15?>
16--EXPECT--
17Done
18