We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc70838 commit bac1ed6Copy full SHA for bac1ed6
NEWS
@@ -15,6 +15,7 @@ PHP NEWS
15
- Opcache:
16
. Fixed bug GH-15834 (Segfault with hook "simple get" cache slot and minimal
17
JIT). (nielsdos)
18
+ . Fixed bug GH-17966 (Symfony JIT 1205 assertion failure). (nielsdos)
19
20
- Standard:
21
. Fix memory leaks in array_any() / array_all(). (nielsdos)
ext/opcache/tests/jit/gh17966.phpt
@@ -0,0 +1,25 @@
1
+--TEST--
2
+GH-17966 (Symfony JIT 1205 assertion failure)
3
+--EXTENSIONS--
4
+opcache
5
+--INI--
6
+opcache.jit=1205
7
+--FILE--
8
+<?php
9
+function test($value, bool $test)
10
+{
11
+ $value = (float) $value;
12
+
13
+ if ($test) {
14
+ return $value * 2;
+ }
+ return $value;
+}
+var_dump(test(1.25, true));
+var_dump(test(1.25, false));
22
+?>
23
+--EXPECT--
24
+float(2.5)
25
+float(1.25)
0 commit comments