From 9aed34312b6ea6eeee6375e40fc05acd7f2e6ccd Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Mon, 15 Dec 2025 15:29:22 -0300 Subject: [PATCH 1/2] PHP 8.5 | Migration guide: add IMAGETYPE_HEIF constant Add the `IMAGETYPE_HEIF` constant to the PHP 8.5 migration guide. Refs: * https://github.com/php/php-src/pull/18940 * https://github.com/php/php-src/pull/20713 --- appendices/migration85/constants.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appendices/migration85/constants.xml b/appendices/migration85/constants.xml index 0b8a86d31536..57ab491216dc 100644 --- a/appendices/migration85/constants.xml +++ b/appendices/migration85/constants.xml @@ -160,6 +160,9 @@ Standard + + IMAGETYPE_HEIF + IMAGETYPE_SVG when libxml is loaded. From fa24e189fe643fd74c74a765bf18b7a4082e0caf Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Wed, 17 Dec 2025 16:57:56 -0300 Subject: [PATCH 2/2] PHP 8.5 | Image constants: add IMAGETYPE_HEIF constant Document the `IMAGETYPE_HEIF` constant in the image extension constants reference. Refs: * https://github.com/php/php-src/pull/18940 * https://github.com/php/php-src/pull/20713 --- reference/image/constants.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference/image/constants.xml b/reference/image/constants.xml index 69b5555fbd2f..2c220c056861 100644 --- a/reference/image/constants.xml +++ b/reference/image/constants.xml @@ -701,6 +701,18 @@ + + + IMAGETYPE_HEIF + (int) + + + &gd.constants.type; + + (Available as of PHP 8.5.0) + + + IMAGETYPE_UNKNOWN