mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/gd: imagerotate removes ignore_transparent argument.
seems to be a relic of PHP 5 but no longer makes sense in regard of gdImageRotateInterpolated. Close GH-11426
This commit is contained in:
committed by
David Carlier
parent
a37ad648b8
commit
b0d8c10fd9
4
NEWS
4
NEWS
@@ -14,6 +14,10 @@ PHP NEWS
|
||||
. Fix #77894 (DOMNode::C14N() very slow on generated DOMDocuments even after
|
||||
normalisation). (nielsdos)
|
||||
|
||||
- GD:
|
||||
. Removed imagerotate "ignore_transparent" argument since it has no effect.
|
||||
(David Carlier)
|
||||
|
||||
- Streams:
|
||||
. Implement GH-8641 (STREAM_NOTIFY_COMPLETED over HTTP never emitted).
|
||||
(nielsdos, Jakub Zelenka)
|
||||
|
||||
@@ -112,6 +112,10 @@ PHP 8.3 UPGRADE NOTES
|
||||
- Dom:
|
||||
. Changed DOMCharacterData::appendData() tentative return type to true.
|
||||
|
||||
- Gd:
|
||||
. Changed imagerotate signature, removed the `ignore_transparent` argument
|
||||
as it was not used internally anyway from PHP 7.x.
|
||||
|
||||
- Intl:
|
||||
. datefmt_set_timezone (and its alias IntlDateformatter::setTimeZone)
|
||||
now returns true on success, previously null was returned.
|
||||
|
||||
@@ -1189,9 +1189,8 @@ PHP_FUNCTION(imagerotate)
|
||||
gdImagePtr im_dst, im_src;
|
||||
double degrees;
|
||||
zend_long color;
|
||||
bool ignoretransparent = 0;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Odl|b", &SIM, gd_image_ce, °rees, &color, &ignoretransparent) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Odl", &SIM, gd_image_ce, °rees, &color) == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
||||
@@ -530,9 +530,8 @@ function imagegrabscreen(): GdImage|false {}
|
||||
|
||||
#endif
|
||||
|
||||
// TODO: $ignore_transparent is ignored???
|
||||
/** @refcount 1 */
|
||||
function imagerotate(GdImage $image, float $angle, int $background_color, bool $ignore_transparent = false): GdImage|false {}
|
||||
function imagerotate(GdImage $image, float $angle, int $background_color): GdImage|false {}
|
||||
|
||||
function imagesettile(GdImage $image, GdImage $tile): bool {}
|
||||
|
||||
|
||||
3
ext/gd/gd_arginfo.h
generated
3
ext/gd/gd_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 810838932a482065c48ab715857062c071db31fd */
|
||||
* Stub hash: 0f8a22bff1d123313f37da400500e573baace837 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
@@ -122,7 +122,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imagerotate, 0, 3, GdImage,
|
||||
ZEND_ARG_OBJ_INFO(0, image, GdImage, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, background_color, IS_LONG, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, ignore_transparent, _IS_BOOL, 0, "false")
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagesettile, 0, 2, _IS_BOOL, 0)
|
||||
|
||||
Reference in New Issue
Block a user