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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 20:01:28 2024 UTC