File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ PHP NEWS
21
21
22
22
- GD:
23
23
. Fixed bug #65148 (imagerotate may alter image dimensions). (cmb)
24
+ . Fixed bug #75437 (Wrong reflection on imagewebp). (Fabien Villepinte)
24
25
25
26
- intl:
26
27
. Fixed bug #75317 (UConverter::setDestinationEncoding changes source instead
Original file line number Diff line number Diff line change @@ -377,6 +377,7 @@ ZEND_END_ARG_INFO()
377
377
ZEND_BEGIN_ARG_INFO_EX (arginfo_imagewebp , 0 , 0 , 1 )
378
378
ZEND_ARG_INFO (0 , im )
379
379
ZEND_ARG_INFO (0 , filename )
380
+ ZEND_ARG_INFO (0 , quality )
380
381
ZEND_END_ARG_INFO ()
381
382
#endif
382
383
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #75437 Wrong reflection on imagewebp
3
+ --SKIPIF--
4
+ if (!extension_loaded('reflection')) die('skip reflection not available');
5
+ if (!extension_loaded('gd')) die('skip gd extension not available');
6
+ if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) die("skip test requires GD 2.2.0 or higher");
7
+ if (!function_exists('imagewebp')) die('skip WebP support not available');
8
+ --FILE--
9
+ <?php
10
+ $ rf = new ReflectionFunction ('imagewebp ' );
11
+ var_dump ($ rf ->getNumberOfParameters ());
12
+ var_dump ($ rf ->getNumberOfRequiredParameters ());
13
+ ?>
14
+ ===DONE===
15
+ --EXPECT--
16
+ int(3)
17
+ int(1)
18
+ ===DONE===
You can’t perform that action at this time.
0 commit comments