forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-7.1: Fix bug #75437 Wrong reflection on imagewebp
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
Bug #75437 Wrong reflection on imagewebp | ||
--SKIPIF-- | ||
if (!extension_loaded('reflection')) die('skip reflection not available'); | ||
if (!extension_loaded('gd')) die('skip gd extension not available'); | ||
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) die("skip test requires GD 2.2.0 or higher"); | ||
if (!function_exists('imagewebp')) die('skip WebP support not available'); | ||
--FILE-- | ||
<?php | ||
$rf = new ReflectionFunction('imagewebp'); | ||
var_dump($rf->getNumberOfParameters()); | ||
var_dump($rf->getNumberOfRequiredParameters()); | ||
?> | ||
===DONE=== | ||
--EXPECT-- | ||
int(3) | ||
int(1) | ||
===DONE=== |