Bug #71077 [Opn->Csd]: ReflectionMethod for ArrayObject constructor returns wrong number of parameters

From: Date: Thu, 10 Dec 2015 00:58:50 +0000
Subject: Bug #71077 [Opn->Csd]: ReflectionMethod for ArrayObject constructor returns wrong number of parameters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197758@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71077&edit=1 ID: 71077 Updated by: laruence@php.net Reported by: ondrej at mirtes dot cz Summary: ReflectionMethod for ArrayObject constructor returns wrong number of parameters -Status: Open +Status: Closed Type: Bug Package: Reflection related PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=7c1ddcc67f2777ce1789bb3f3fc7a614aad8a3dc Log: Fixed bug #71077 (ReflectionMethod for ArrayObject constructor returns wrong number of parameters) Previous Comments: ------------------------------------------------------------------------ [2015-12-09 21:20:47] ondrej at mirtes dot cz Description: ------------ ReflectionMethod::getParameters() for ArrayObject constructor returns one parameter, although in practice the function accepts three parameters (and documentation states the same). https://3v4l.org/MfKsQ Test script: --------------- <?php $ref = new ReflectionClass('ArrayObject'); var_dump(count($ref->getMethod('__construct')->getParameters())); Expected result: ---------------- int(3) Actual result: -------------- int(1) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71077&edit=1

« previous php.bugs (#197758) next »