Bug #75299 [Opn->Csd]: Wrong reflection on inflate_init and inflate_add

From: Date: Wed, 11 Oct 2017 15:47:41 +0000
Subject: Bug #75299 [Opn->Csd]: Wrong reflection on inflate_init and inflate_add
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211628@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75299&edit=1 ID: 75299 Updated by: cmb@php.net Reported by: fabien dot villepinte at gmail dot com Summary: Wrong reflection on inflate_init and inflate_add -Status: Open +Status: Closed Type: Bug Package: Zlib related PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Automatic comment on behalf of fabien.villepinte@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=9d9873b3b5f6f6dcdbe7d4e981c1b5eda6d7da56 Log: Fix Bug #75299 Wrong reflection on inflate_init and inflate_add Previous Comments: ------------------------------------------------------------------------ [2017-10-01 09:25:07] fabien dot villepinte at gmail dot com Description: ------------ The number of parameters returned by reflection is wrong for inflate_init() and inflate_add(). See : http://php.net/manual/en/function.inflate-init.php http://php.net/manual/en/function.inflate-add.php Test script: --------------- <?php $r = new ReflectionFunction('inflate_init'); var_dump($r->getNumberOfRequiredParameters()); var_dump($r->getNumberOfParameters()); $r = new ReflectionFunction('inflate_add'); var_dump($r->getNumberOfRequiredParameters()); var_dump($r->getNumberOfParameters()); Expected result: ---------------- int(1) int(2) int(2) int(3) Actual result: -------------- int(1) int(1) int(2) int(2) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75299&edit=1

« previous php.bugs (#211628) next »