mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
Merge branch 'PHP-7.2' into PHP-7.3
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
--TEST--
|
||||
Bug #77691: Opcache passes wrong value for inline array push assignments
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
if (true) {
|
||||
function dump($str) {
|
||||
var_dump($str);
|
||||
}
|
||||
}
|
||||
|
||||
function test() {
|
||||
$array = [];
|
||||
dump($array[] = 'test');
|
||||
dump($array);
|
||||
}
|
||||
|
||||
test();
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
string(4) "test"
|
||||
array(1) {
|
||||
[0]=>
|
||||
string(4) "test"
|
||||
}
|
||||
Reference in New Issue
Block a user