xref: /PHP-8.4/ext/opcache/tests/jit/assign_047.phpt (revision c16ad918)
1--TEST--
2JIT ASSIGN: incorrect narrowing to double
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10function test(){
11	$x = (object)['x'=>0];
12	for($i=0;$i<10;$i++){
13		+$a;
14		$a=$x->x;
15		$a=7;
16	}
17}
18test()
19?>
20DONE
21--EXPECTF--
22Warning: Undefined variable $a in %sassign_047.php on line 5
23DONE
24
25