From bac1ed6579cf7431d2c46957b69d7d757d406d82 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Thu, 6 Mar 2025 21:54:30 +0100 Subject: [PATCH] Add test for GH-17966 This was fixed via https://github.com/dstogov/ir/pull/109 which was merged in cc70838dc923f2f5896d2faa1240fb2e5100d24f. --- NEWS | 1 + ext/opcache/tests/jit/gh17966.phpt | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 ext/opcache/tests/jit/gh17966.phpt diff --git a/NEWS b/NEWS index fa4018bf8ed..404290dcf61 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,7 @@ PHP NEWS - Opcache: . Fixed bug GH-15834 (Segfault with hook "simple get" cache slot and minimal JIT). (nielsdos) + . Fixed bug GH-17966 (Symfony JIT 1205 assertion failure). (nielsdos) - Standard: . Fix memory leaks in array_any() / array_all(). (nielsdos) diff --git a/ext/opcache/tests/jit/gh17966.phpt b/ext/opcache/tests/jit/gh17966.phpt new file mode 100644 index 00000000000..f9983ad4c2b --- /dev/null +++ b/ext/opcache/tests/jit/gh17966.phpt @@ -0,0 +1,25 @@ +--TEST-- +GH-17966 (Symfony JIT 1205 assertion failure) +--EXTENSIONS-- +opcache +--INI-- +opcache.jit=1205 +--FILE-- + +--EXPECT-- +float(2.5) +float(1.25)