xref: /PHP-8.4/ext/gd/tests/bug74031.phpt (revision 0b8466f2)
1--TEST--
2(Bug #74031) ReflectionFunction for imagepng returns wrong number of parameters
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if (!(imagetypes() & IMG_PNG)) {
8    die("skip No PNG support");
9}
10?>
11--FILE--
12<?php
13
14$ref = new ReflectionFunction('imagepng');
15var_dump(count($ref->getParameters()));
16?>
17--EXPECT--
18int(4)
19