php-src/ext/opcache/tests/bug77691.phpt
Christoph M. Becker 75bc3446f8 Add missing SKIPIFs
All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.
2019-07-01 17:21:16 +02:00

29 lines
382 B
PHP

--TEST--
Bug #77691: Opcache passes wrong value for inline array push assignments
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--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"
}