Skip to content

Commit e6e8cb7

Browse files
committed
ext/gd: imagerotate removes ignore_transparent argument.
seems to be a relic of PHP 5 but no longer makes sense in regard of gdImageRotateInterpolated.
1 parent 49fbbea commit e6e8cb7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

ext/gd/gd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,9 +1189,8 @@ PHP_FUNCTION(imagerotate)
11891189
gdImagePtr im_dst, im_src;
11901190
double degrees;
11911191
zend_long color;
1192-
bool ignoretransparent = 0;
11931192

1194-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Odl|b", &SIM, gd_image_ce, &degrees, &color, &ignoretransparent) == FAILURE) {
1193+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Odl", &SIM, gd_image_ce, &degrees, &color) == FAILURE) {
11951194
RETURN_THROWS();
11961195
}
11971196

ext/gd/gd.stub.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,8 @@ function imagegrabscreen(): GdImage|false {}
530530

531531
#endif
532532

533-
// TODO: $ignore_transparent is ignored???
534533
/** @refcount 1 */
535-
function imagerotate(GdImage $image, float $angle, int $background_color, bool $ignore_transparent = false): GdImage|false {}
534+
function imagerotate(GdImage $image, float $angle, int $background_color): GdImage|false {}
536535

537536
function imagesettile(GdImage $image, GdImage $tile): bool {}
538537

ext/gd/gd_arginfo.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)