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
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: 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 Dec 22 03:01:28 2024 UTC