1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/opcache/tests/bug77310_1.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

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