xref: /PHP-7.1/ext/zlib/tests/bug75299.phpt (revision 9d9873b3)
1--TEST--
2Bug #75299 Wrong reflection on inflate_init and inflate_add
3--SKIPIF--
4<?php if (!extension_loaded("zlib") || !extension_loaded('reflection')) die("skip"); ?>
5--FILE--
6<?php
7$r = new ReflectionFunction('inflate_init');
8var_dump($r->getNumberOfRequiredParameters());
9var_dump($r->getNumberOfParameters());
10$r = new ReflectionFunction('inflate_add');
11var_dump($r->getNumberOfRequiredParameters());
12var_dump($r->getNumberOfParameters());
13?>
14===DONE===
15--EXPECT--
16int(1)
17int(2)
18int(2)
19int(3)
20===DONE===
21