1--TEST-- 2Bug #75437 Wrong reflection on imagewebp 3--SKIPIF-- 4<?php 5if (!extension_loaded('reflection')) die('skip reflection not available'); 6if (!extension_loaded('gd')) die('skip gd extension not available'); 7if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) die("skip test requires GD 2.2.0 or higher"); 8if (!function_exists('imagewebp')) die('skip WebP support not available'); 9?> 10--FILE-- 11<?php 12$rf = new ReflectionFunction('imagewebp'); 13var_dump($rf->getNumberOfParameters()); 14var_dump($rf->getNumberOfRequiredParameters()); 15?> 16===DONE=== 17--EXPECT-- 18int(3) 19int(1) 20===DONE=== 21