1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00
Files
archived-php-src/ext/opcache/tests/bug77310_1.phpt
Christoph M. Becker 3e25ddb07b Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Add missing SKIPIFs
2019-07-01 18:12:28 +02:00

22 lines
372 B
PHP

--TEST--
Bug #77310 (1): Incorrect SCCP for compound assign to arrays
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--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