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--EXPECT-- 19int(2) 20int(1) 21int(1) 22int(0) 23