From: saurabh0 at gmail dot com Operating system: Windoes Server 2003 PHP version: 5.2.9 PHP Bug Type: mcrypt related Bug description: Warning about empty IV in ECB mode
Description: ------------ In ECB mode iv is ignored so there should not be any warning when passing and empty iv string. This was also reported earlier in bugs #43143 and #46010 which were supposedly fixed. Reproduce code: --------------- $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init($td, 'mysecretkey', ''); Expected result: ---------------- No warning. In fact a 'Notice' when a non-empty iv is given in ECB mode mentioning that it will be ignored would be better. Actual result: -------------- Warning: mcrypt_generic_init() [function.mcrypt-generic-init]: Iv size incorrect; supplied length: 0, needed: 8 -- Edit bug report at http://bugs.php.net/?id=47654&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47654&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47654&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47654&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47654&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47654&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47654&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47654&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47654&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47654&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47654&r=support Expected behavior: http://bugs.php.net/fix.php?id=47654&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47654&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47654&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47654&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47654&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47654&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47654&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47654&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47654&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47654&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47654&r=mysqlcfg