php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nyamsprod at gmail dot com
New email:
PHP Version: OS:

 

 [2017-02-22 12:48 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-23 03:03 UTC] laruence@php.net
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)
 [2017-02-23 03:03 UTC] laruence@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 18:01:31 2024 UTC