Bug #77619 [Opn->Csd]: Wrong reflection on MultipleIterator::__construct

From: Date: Thu, 14 Feb 2019 16:04:21 +0000
Subject: Bug #77619 [Opn->Csd]: Wrong reflection on MultipleIterator::__construct
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219580@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77619&edit=1 ID: 77619 Updated by: nikic@php.net Reported by: fabien dot villepinte at gmail dot com Summary: Wrong reflection on MultipleIterator::__construct -Status: Open +Status: Closed Type: Bug Package: SPL 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=ce7552af381f980a1070e258f051b76004268b3a Log: Fixed bug #77619 Previous Comments: ------------------------------------------------------------------------ [2019-02-14 11:59:55] The following pull request has been associated: Patch Name: Fix MultipleIterator::__construct() arginfo On GitHub: https://github.com/php/php-src/pull/3830 Patch: https://github.com/php/php-src/pull/3830.patch ------------------------------------------------------------------------ [2019-02-14 11:58:27] fabien dot villepinte at gmail dot com Description: ------------ ReflectionMethod::getNumberOfRequiredParameters() returns 1 for MultipleIterator::__construct() whereas it should return 0. See: https://secure.php.net/manual/en/class.reflectionmethod.php Test script: --------------- <?php $rm = new ReflectionMethod('MultipleIterator','__construct'); var_dump($rm->getNumberOfParameters()); var_dump($rm->getNumberOfRequiredParameters()); Expected result: ---------------- int(1) int(0) Actual result: -------------- int(1) int(1) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77619&edit=1

« previous php.bugs (#219580) next »