Commit e257c086bb2 for php.net
commit e257c086bb22489875e378cb452b925dc3b08bc2
Author: David Carlier <devnexen@gmail.com>
Date: Fri Mar 13 16:28:59 2026 +0000
ext/gd: phpinfo() to be able to display libjpeg 10.0 support.
Fix #21431
Co-Authored-By: rainerjung
close GH-21432
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";
}