xref: /PHP-7.4/ext/mysqli/tests/bug75434.phpt (revision 84488d92)
1--TEST--
2Bug #75434 Wrong reflection for mysqli_fetch_all function
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6if (!stristr(mysqli_get_client_info(), 'mysqlnd')) die("skip: only available in mysqlnd");
7?>
8--FILE--
9<?php
10$rf = new ReflectionFunction('mysqli_fetch_all');
11var_dump($rf->getNumberOfParameters());
12var_dump($rf->getNumberOfRequiredParameters());
13
14$rm = new ReflectionMethod('mysqli_result', 'fetch_all');
15var_dump($rm->getNumberOfParameters());
16var_dump($rm->getNumberOfRequiredParameters());
17?>
18===DONE===
19--EXPECT--
20int(2)
21int(1)
22int(1)
23int(0)
24===DONE===
25