From 2662444b11bf9969b387ba18c5ec541bd342c0b6 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Sat, 9 May 2026 16:32:52 +0200 Subject: [PATCH] [Sync EN] PHP 8.5: add IMAGETYPE_HEIF constant to migration guide and image constant pages (#5042) --- appendices/migration85/constants.xml | 5 ++++- reference/exif/functions/exif-imagetype.xml | 12 +++++++++++- reference/image/constants.xml | 14 +++++++++++++- .../image/functions/image-type-to-mime-type.xml | 6 +++++- 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/appendices/migration85/constants.xml b/appendices/migration85/constants.xml index 0dce34f1c..68b3beb18 100644 --- a/appendices/migration85/constants.xml +++ b/appendices/migration85/constants.xml @@ -1,5 +1,5 @@ - + Nuevas constantes globales @@ -162,6 +162,9 @@ Estándar + + IMAGETYPE_HEIF + IMAGETYPE_SVG cuando se carga libxml. diff --git a/reference/exif/functions/exif-imagetype.xml b/reference/exif/functions/exif-imagetype.xml index 96e79489c..54e85cf5a 100644 --- a/reference/exif/functions/exif-imagetype.xml +++ b/reference/exif/functions/exif-imagetype.xml @@ -1,6 +1,6 @@ - + @@ -137,6 +137,10 @@ 19 IMAGETYPE_AVIF + + 20 + IMAGETYPE_HEIF + @@ -177,6 +181,12 @@ Añadida la compatibilidad con AVIF. + + 8.5.0 + + Añadida la compatibilidad con HEIF. + + diff --git a/reference/image/constants.xml b/reference/image/constants.xml index 5e5900b74..28be3e618 100644 --- a/reference/image/constants.xml +++ b/reference/image/constants.xml @@ -1,6 +1,6 @@ - + &reftitle.constants; @@ -702,6 +702,18 @@ + + + IMAGETYPE_HEIF + (int) + + + &gd.constants.type; + + (Disponible a partir de PHP 8.5.0) + + + IMAGETYPE_UNKNOWN diff --git a/reference/image/functions/image-type-to-mime-type.xml b/reference/image/functions/image-type-to-mime-type.xml index 758d58fcc..1b8ee25a6 100644 --- a/reference/image/functions/image-type-to-mime-type.xml +++ b/reference/image/functions/image-type-to-mime-type.xml @@ -1,6 +1,6 @@ - + @@ -125,6 +125,10 @@ IMAGETYPE_AVIF image/avif + + IMAGETYPE_HEIF + image/heif +