Skip to content

Commit e3a5c38

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Add test for GH-17966
2 parents ad5de59 + bac1ed6 commit e3a5c38

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

ext/opcache/tests/jit/gh17966.phpt

+25
Original file line numberDiff line numberDiff line change
@@ -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;
15+
}
16+
17+
return $value;
18+
}
19+
20+
var_dump(test(1.25, true));
21+
var_dump(test(1.25, false));
22+
?>
23+
--EXPECT--
24+
float(2.5)
25+
float(1.25)

0 commit comments

Comments
 (0)