php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74031 ReflectionFunction for imagepng is missing last two parameters
Submitted: 2017-02-02 09:16 UTC Modified: -
From: finwe at finwe dot info Assigned:
Status: Closed Package: Reflection related
PHP Version: 7.1.1 OS: Unix (Ubuntu 16.04)
Private report: No CVE-ID:
 [2017-02-02 09:16 UTC] finwe at finwe dot info
Description:
------------
ReflectionFunction for imagepng is missing last two parameters available since PHP 5.1.2 and 5.1.3 respectively, quality and filters.

PHP Version 7.1.1
GD library Version 2.2.3

Test script:
---------------
$ref = new ReflectionFunction('imagepng'); 
var_dump(count($ref->getParameters()));

Expected result:
----------------
int(4)

Actual result:
--------------
int(2)

Patches

imagepng-reflection-parameters (last revision 2017-02-02 09:17 UTC) by finwe at finwe dot info)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-02 17:15 UTC] nikic@php.net
Automatic comment on behalf of finwe@finwe.info
Revision: http://git.php.net/?p=php-src.git;a=commit;h=acda2563cea2acacdb126a6c14a144a9bf52e3a3
Log: Fix bug #74031
 [2017-02-02 17:15 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 19:01:48 2017 UTC