From e257c086bb22489875e378cb452b925dc3b08bc2 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 13 Mar 2026 16:28:59 +0000 Subject: [PATCH] ext/gd: phpinfo() to be able to display libjpeg 10.0 support. Fix #21431 Co-Authored-By: rainerjung close GH-21432 --- NEWS | 4 ++++ ext/gd/libgd/gd_jpeg.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index ed073067656..d582ab9318a 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,10 @@ PHP NEWS - Bz2: . Fix truncation of total output size causing erroneous errors. (ndossche) +- GD: + . Fixed bug GH-21431 (phpinfo() to display libJPEG 10.0 support). + (David Carlier) + - Opcache: . Fixed bug GH-20838 (JIT compiler produces wrong arithmetic results). (Dmitry, iliaal) diff --git a/ext/gd/libgd/gd_jpeg.c b/ext/gd/libgd/gd_jpeg.c index f0974c2a99d..c15a97c7b59 100644 --- a/ext/gd/libgd/gd_jpeg.c +++ b/ext/gd/libgd/gd_jpeg.c @@ -125,6 +125,10 @@ const char * gdJpegGetVersionString() return "9 compatible"; break; + case 100: + return "10 compatible"; + break; + default: return "unknown"; }