Skip to content

Commit df651b7

Browse files
committed
changes from review
1 parent b873357 commit df651b7

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ PHP 8.3 UPGRADE NOTES
241241
- DOM:
242242
. Added DOMNode::contains() and DOMNameSpaceNode::contains().
243243

244+
- GD:
245+
. Added imagerotated which copy a rotated area from a defined position and angle.
246+
244247
- JSON:
245248
. Added json_validate(), which returns whether the json is valid for
246249
the given $depth and $options.

ext/gd/gd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,6 @@ PHP_FUNCTION(imagecopyrotated)
10781078
angle = A;
10791079

10801080
gdImageCopyRotated(im_dst, im_src, dstX, dstY, srcX, srcY, srcW, srcH, angle);
1081-
RETURN_TRUE;
10821081
}
10831082
#endif
10841083

ext/gd/gd.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ function imagecolorexactalpha(GdImage $image, int $red, int $green, int $blue, i
521521
function imagecopyresampled(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {}
522522

523523
#ifdef HAVE_GD_COPY_ROTATED
524-
function imagecopyrotated(GdImage $dst_image, GdImage $src_image, float $dst_x, float $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $angle): bool {}
524+
function imagecopyrotated(GdImage $dst_image, GdImage $src_image, float $dst_x, float $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $angle): void {}
525525
#endif
526526

527527
#ifdef PHP_WIN32

ext/gd/gd_arginfo.h

Lines changed: 2 additions & 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)