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
 [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: Wed Oct 16 07:01:27 2024 UTC