mirror of
https://github.com/php/php-src.git
synced 2026-04-19 14:01:01 +02:00
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
22 lines
347 B
PHP
22 lines
347 B
PHP
--TEST--
|
|
Bug #77310 (1): Incorrect SCCP for compound assign to arrays
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
|
|
function breakit($data_arr) {
|
|
$foo[0] = "";
|
|
for ($i = 0; $i < count($data_arr); $i++) {
|
|
$foo[0] .= $data_arr[$i];
|
|
}
|
|
echo $foo[0] . "\n";
|
|
}
|
|
|
|
$data = ['zero', 'one', 'two'];
|
|
breakit($data);
|
|
|
|
?>
|
|
--EXPECT--
|
|
zeroonetwo
|