mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
f9518c3850
Fixes oss-fuzz #41223
26 lines
387 B
PHP
26 lines
387 B
PHP
--TEST--
|
|
JIT ASSIGN: incorrect narrowing to double
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.jit_buffer_size=1M
|
|
opcache.protect_memory=1
|
|
--FILE--
|
|
<?php
|
|
function test(){
|
|
$x = (object)['x'=>0];
|
|
for($i=0;$i<10;$i++){
|
|
+$a;
|
|
$a=$x->x;
|
|
$a=7;
|
|
}
|
|
}
|
|
test()
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
Warning: Undefined variable $a in %sassign_047.php on line 5
|
|
DONE
|
|
|