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