From: terrafr...@php.net Operating system: PHP version: 5.2.10 PHP Bug Type: mcrypt related Bug description: mcrypt warns about having no IV in ECB mode
Description: ------------ mcrypt complains about their being no IV even if ECB mode is being used. Since ECB mode doesn't use IVs, it seems like no such warning should be produced. Bug #43143 is fairly similar to this one, except that that one produced a slightly different error. Also, that one was closed on the basis that it had been fixed. Reproduce code: --------------- <?php $td = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_ECB, ''); mcrypt_generic_init($td, 'aaaaaaaaaaaaaaaa', ''); ?> Expected result: ---------------- I would expect that to just run its course and output nothing. Actual result: -------------- I get the following: Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 0, needed: 16 in C:\php\test.php on line 3 -- Edit bug report at http://bugs.php.net/?id=49561&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49561&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49561&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49561&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49561&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49561&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49561&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49561&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49561&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49561&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49561&r=support Expected behavior: http://bugs.php.net/fix.php?id=49561&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49561&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49561&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49561&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49561&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49561&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49561&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49561&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49561&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49561&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49561&r=mysqlcfg