xref: /PHP-7.0/ext/mysqli/tests/bug75434.phpt (revision 938f256e)
1--TEST--
2Bug #75434 Wrong reflection for mysqli_fetch_all function
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6if (!extension_loaded("reflection")) die("skip reflection extension not available");
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