|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-30 09:03 UTC] jani@php.net
[2009-05-08 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
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