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