Req #71992 [Opn->Wfx]: The $iv parameter should be required since E_WARNING is thrown without it

From: Date: Mon, 02 May 2016 14:26:32 +0000
Subject: Req #71992 [Opn->Wfx]: The $iv parameter should be required since E_WARNING is thrown without it
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200861@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71992&edit=1 ID: 71992 Updated by: bukka@php.net Reported by: markreodica at gmail dot com Summary: The $iv parameter should be required since E_WARNING is thrown without it -Status: Open +Status: Wont fix Type: Feature/Change Request Package: OpenSSL related PHP Version: Irrelevant -Assigned To: +Assigned To: bukk Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-04-08 16:44:13] markreodica at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.openssl-encrypt --- The manual says: "Emits an E_WARNING level error if an empty value is passed in via the iv parameter." Because of this behavior, the $iv parameter should be required. The parameter should not be labeled as optional if it's throwing an E_WARNING if not used. Test script: --------------- Test script is not really needed. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71992&edit=1

« previous php.bugs (#200861) next »