mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Merge branch 'PHP-7.4'
This commit is contained in:
commit
5db64d695a
1 changed files with 26 additions and 0 deletions
26
ext/opcache/tests/bug77691.phpt
Normal file
26
ext/opcache/tests/bug77691.phpt
Normal 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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue