1--TEST-- 2Bug #41252 (Calling mcrypt_generic without first calling mcrypt_generic_init crashes) 3--SKIPIF-- 4<?php if (!extension_loaded("mcrypt")) print "skip"; ?> 5--FILE-- 6<?php 7$td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, ''); 8echo mcrypt_generic($td,'aaaaaaaa'); 9print "I'm alive!\n"; 10?> 11--EXPECTF-- 12Deprecated: Function mcrypt_module_open() is deprecated in %s%ebug41252.php on line 2 13 14Deprecated: Function mcrypt_generic() is deprecated in %s%ebug41252.php on line 3 15 16Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug41252.php on line 3 17I'm alive! 18