From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.4.6 PHP Bug Type: Reproducible crash Bug description: calling mcrypt_generic without first calling mcrypt_generic_init crashes
Description: ------------ Calling mcrypt_generic() without first calling mcrypt_generic_init() results in a crash on PHP 4.4.6 / Windows XP running the latest version of mcrypt from http://ftp.emini.dk/pub/php/win32/mcrypt/. PHP 5 is unaffected. Reproduce code: --------------- <?php $td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, ''); echo mcrypt_generic($td,'aaaaaaaa'); ?> Expected result: ---------------- There should be some sort of error. Here's what PHP 5.2.1 says: Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init() in {filename} on line 3 Actual result: -------------- It crashes. -- Edit bug report at http://bugs.php.net/?id=41252&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41252&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41252&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41252&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41252&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41252&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41252&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41252&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41252&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41252&r=support Expected behavior: http://bugs.php.net/fix.php?id=41252&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41252&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41252&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41252&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41252&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41252&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41252&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41252&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41252&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41252&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41252&r=mysqlcfg