From 928f0513239395b4f2e617e5786d0c62dcb4abb4 Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Tue, 26 Apr 2022 15:22:29 +0300 Subject: [PATCH] [PHP 8.1] Add new global GD constants (#1545) --- reference/image/constants.xml | 23 +++++++++++++++++++++++ reference/image/functions/imagetypes.xml | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/reference/image/constants.xml b/reference/image/constants.xml index e2ff7c6a29..fe709c9a03 100644 --- a/reference/image/constants.xml +++ b/reference/image/constants.xml @@ -77,6 +77,18 @@ + + + IMG_AVIF + (int) + + + &gd.constants.types; + + Available as of PHP 8.1.0. + + + IMG_BMP @@ -157,6 +169,17 @@ + + + IMG_WEBP_LOSSLESS + (int) + + + + Available as of PHP 8.1.0. + + + IMG_COLOR_TILED diff --git a/reference/image/functions/imagetypes.xml b/reference/image/functions/imagetypes.xml index 399cd41ef9..705565a59d 100644 --- a/reference/image/functions/imagetypes.xml +++ b/reference/image/functions/imagetypes.xml @@ -26,7 +26,7 @@ Returns a bit-field corresponding to the image formats supported by the version of GD linked into PHP. The following bits are returned, - IMG_BMP | + IMG_AVIF | IMG_BMP | IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM | IMG_WEBP. @@ -45,6 +45,12 @@ + + 8.1.0 + + IMG_AVIF added. + + 7.2.0