1
0
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:
Nikita Popov
2019-03-04 13:16:01 +01:00
+26
View File
@@ -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"
}