mirror of
https://github.com/php/php-src.git
synced 2026-03-27 09:42:22 +01:00
They have 1 and 2 required parameters, respectively See https://secure.php.net/manual/en/function.random-int.php
20 lines
414 B
PHP
20 lines
414 B
PHP
--TEST--
|
|
Bug #74708 Wrong reflection on random_bytes and random_int
|
|
--FILE--
|
|
<?php
|
|
$rf = new ReflectionFunction('random_bytes');
|
|
var_dump($rf->getNumberOfParameters());
|
|
var_dump($rf->getNumberOfRequiredParameters());
|
|
|
|
$rf = new ReflectionFunction('random_int');
|
|
var_dump($rf->getNumberOfParameters());
|
|
var_dump($rf->getNumberOfRequiredParameters());
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
int(1)
|
|
int(1)
|
|
int(2)
|
|
int(2)
|
|
===DONE===
|