php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75437 Wrong reflection on imagewebp
Submitted: 2017-10-25 09:21 UTC Modified: 2017-10-25 10:32 UTC
From: fabien dot villepinte at gmail dot com Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: Irrelevant OS:
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: fabien dot villepinte at gmail dot com
New email:
PHP Version: OS:

 

 [2017-10-25 09:21 UTC] fabien dot villepinte at gmail dot com
Description:
------------
The number of parameters returned by reflection is wrong for imagewebp().

See:
https://secure.php.net/manual/en/function.imagewebp.php


Test script:
---------------
<?php
$rf = new ReflectionFunction('imagewebp');
var_dump($rf->getNumberOfParameters());
var_dump($rf->getNumberOfRequiredParameters());

Expected result:
----------------
int(3)
int(1)

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

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-25 10:32 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2017-10-25 11:16 UTC] cmb@php.net
Automatic comment on behalf of fabien.villepinte@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0fbb9f343f9cff71532f28d86cfcc93f5fb3997e
Log: Fix bug #75437 Wrong reflection on imagewebp
 [2017-10-25 11:17 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 03 06:01:29 2024 UTC