1--TEST-- 2Bug #70625: mcrypt_encrypt() : won't return data when no IV was specified under RC4 3--SKIPIF-- 4<?php if (!extension_loaded("mcrypt")) print "skip"; ?> 5--FILE-- 6<?php 7 8$key = 'secretkey'; 9$ciphertext = mcrypt_encrypt(MCRYPT_ARCFOUR, $key, 'payload', MCRYPT_MODE_STREAM); 10var_dump(bin2hex($ciphertext)); 11$plaintext = mcrypt_decrypt(MCRYPT_ARCFOUR, $key, $ciphertext, MCRYPT_MODE_STREAM); 12var_dump($plaintext); 13 14?> 15--EXPECTF-- 16Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug70625.php on line 4 17string(14) "d5c9a57023d0f1" 18 19Deprecated: Function mcrypt_decrypt() is deprecated in %s%ebug70625.php on line 6 20string(7) "payload" 21