From: php-bug at ulterium dot com Operating system: Win2000 OR Win2003 PHP version: 4.3.4 PHP Bug Type: mcrypt related Bug description: PHP 4.3.4 Crashes with mcrypt_decrypt but mcrypt_encrypt works perfectly.
Description: ------------ Note: Also seen on Apache from a user's report on another web page. No solutions found from searching web. Using latest libmcrypt.dll and all permissions set correctly. If the mcrypt_decrypt line is // out then it will complete but only do the encrypt. Any ideas? Reproduce code: --------------- $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = "This is a key"; $text = "This is a test string."; echo strlen($text) . "<br>"; echo $text."<br>"; $crypttext = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv); echo strlen($crypttext) . "<br>"; echo $crypttext."<br>"; $decrypttext = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $crypttext, MCRYPT_MODE_ECB, $iv); echo strlen($decrypttext) . "<br>"; echo $decrypttext."<br>"; Expected result: ---------------- Should DeCrypt String Actual result: -------------- PHP has encountered an Access Violation at 6C1994EB42 -- Edit bug report at http://bugs.php.net/?id=27118&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27118&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27118&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27118&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27118&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27118&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27118&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27118&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27118&r=support Expected behavior: http://bugs.php.net/fix.php?id=27118&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27118&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27118&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27118&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27118&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27118&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27118&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27118&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27118&r=float