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: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: finwe at finwe dot info
New email:
PHP Version: OS:

 

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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC