Bug #75307 [Opn->Csd]: Wrong reflection for openssl_open function
| From: | krakjoe@php.net | Date: | Fri, 27 Oct 2017 15:08:02 +0000 |
| Subject: | Bug #75307 [Opn->Csd]: Wrong reflection for openssl_open function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212341@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75307&edit=1
ID: 75307
Updated by: krakjoe@php.net
Reported by: ossinkine at ya dot ru
Summary: Wrong reflection for openssl_open function
-Status: Open
+Status: Closed
Type: Bug
Package: OpenSSL related
Operating System: Ubuntu
PHP Version: 7.1.10
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of fabien.villepinte@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=51ea2cfbe1c8c3cbfdc381c6f2ff4d43af520938
Log: Fix bug #75307 Wrong reflection for openssl_open function
Previous Comments:
------------------------------------------------------------------------
[2017-10-25 13:39:06] ossinkine at ya dot ru
No, fifth parameter is $parameter[4]
------------------------------------------------------------------------
[2017-10-24 21:42:49] sadhooklay at gmail dot com
Did you mean $parameters[5] not $parameters[4] right?
------------------------------------------------------------------------
[2017-10-03 12:14:41] ossinkine at ya dot ru
Description:
------------
Reflection for openssl_open returns 5 required parameters "data", "opendata",
"ekey", "privkey", "iv". But actually 5 parameter is optional. And
parameters names also are different from documentation: http://php.net/openssl_open
Test script:
---------------
$reflection = new ReflectionFunction('openssl_open');
$parameters = $reflection->getParameters();
var_dump($parameters[4]->isOptional()); // false
Expected result:
----------------
$parameters[4]->isOptional() returns true
Actual result:
--------------
$parameters[4]->isOptional() returns false
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75307&edit=1