Bug #74148 [Opn->Csd]: ReflectionFunction incorrectly reports the number of arguments

From: Date: Thu, 23 Feb 2017 03:03:08 +0000
Subject: Bug #74148 [Opn->Csd]: ReflectionFunction incorrectly reports the number of arguments
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207516@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74148&edit=1 ID: 74148 Updated by: laruence@php.net Reported by: nyamsprod at gmail dot com Summary: ReflectionFunction incorrectly reports the number of arguments -Status: Open +Status: Closed Type: Bug Package: Reflection related Operating System: Irrelevant 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=1d4eead995ed8bd437aec578568aaee0075d17b0 Log: Fixed bug #74148 (ReflectionFunction incorrectly reports the number of arguments) Previous Comments: ------------------------------------------------------------------------ [2017-02-22 12:48:33] nyamsprod at gmail dot com Description: ------------ Since PHP5.5.4 fputcsv accepts 5 arguments but regardless of PHP supported version ReflectionFunction returns 4. see https://3v4l.org/WARpp Test script: --------------- echo (new ReflectionFunction('fputcsv'))->getNumberOfParameters()); Expected result: ---------------- 5 Actual result: -------------- 4 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74148&edit=1

« previous php.bugs (#207516) next »