xref: /php-src/ext/mysqli/tests/bug75434.phpt (revision b5a14e6c)
1--TEST--
2Bug #75434 Wrong reflection for mysqli_fetch_all function
3--EXTENSIONS--
4mysqli
5--FILE--
6<?php
7$rf = new ReflectionFunction('mysqli_fetch_all');
8var_dump($rf->getNumberOfParameters());
9var_dump($rf->getNumberOfRequiredParameters());
10
11$rm = new ReflectionMethod('mysqli_result', 'fetch_all');
12var_dump($rm->getNumberOfParameters());
13var_dump($rm->getNumberOfRequiredParameters());
14?>
15--EXPECT--
16int(2)
17int(1)
18int(1)
19int(0)
20