|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74148 ReflectionFunction incorrectly reports the number of arguments
Submitted: 2017-02-22 12:48 UTC Modified: -
From: nyamsprod at gmail dot com Assigned:
Status: Closed Package: Reflection related
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: nyamsprod at gmail dot com
New email:
PHP Version: OS:


 [2017-02-22 12:48 UTC] nyamsprod at gmail dot com
Since PHP5.5.4 fputcsv accepts 5 arguments but regardless of PHP supported version ReflectionFunction returns 4.


Test script:
echo (new ReflectionFunction('fputcsv'))->getNumberOfParameters());

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-23 03:03 UTC]
Automatic comment on behalf of
Log: Fixed bug #74148 (ReflectionFunction incorrectly reports the number of arguments)
 [2017-02-23 03:03 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Mar 31 13:01:24 2020 UTC