Annotation of embedaddon/php/ext/openssl/tests/bug54061.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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
! 8: r7-89437 r892374 r894372 r894 7289r7 f frwerfh i iurf iuryw uyrfouiwy ruy
! 9: 972439 8478942 yrhfjkdhls";
! 10: $pass = "r23498rui324hjbnkj";
! 11:
! 12: $cr = openssl_encrypt($data, 'des3', $pass, false, '1qazxsw2');
! 13: $dcr = openssl_decrypt($cr, 'des3', $pass, false, '1qazxsw2');
! 14: echo "Done";
! 15: ?>
! 16: --EXPECT--
! 17: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>