mirror of
https://github.com/php/php-src.git
synced 2024-12-19 23:11:42 +08:00
43b26c7b21
This patch adds the missing ARG_INFO for the optional 5th parameter $method.
20 lines
392 B
PHP
20 lines
392 B
PHP
--TEST--
|
|
Bug #70395 (Missing ARG_INFO for openssl_seal())
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("openssl")) die("skip openssl not loaded");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$func = new ReflectionFunction('openssl_seal');
|
|
$param = $func->getParameters()[4];
|
|
var_dump($param);
|
|
var_dump($param->isOptional());
|
|
?>
|
|
--EXPECTF--
|
|
object(ReflectionParameter)#%d (1) {
|
|
["name"]=>
|
|
string(6) "method"
|
|
}
|
|
bool(true)
|