23 lines
400 B
PHP
23 lines
400 B
PHP
--TEST--
|
|
JIT ASSIGN_OP: 007 Arrays merging with return value
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.jit_buffer_size=1M
|
|
--FILE--
|
|
<?php
|
|
function test() {
|
|
$a = [];
|
|
for ($i=0; $i < 2; $i++) {
|
|
$a += $a + $a += $a;
|
|
$a['b'] += 1;
|
|
}
|
|
}
|
|
test();
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
Warning: Undefined array key "b" in %sassign_op_007.php on line 6
|
|
DONE
|