blob: 27ab1d7305d7fb4b274b6030e35c0caccfa3c088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--TEST--
Bug #77857 (Wrong result if executed with JIT)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=64
opcache.jit=1205
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function test() {
$arr = array_fill(0, 1, 1.0);
$y = 0.0;
foreach ($arr as $v) {
$tmp = 1.0 * $v;
var_dump($tmp);
$y = $tmp/1.0;
}
return $y;
}
var_dump(test());
?>
--EXPECT--
float(1)
float(1)
|