php-src/ext/opcache/tests/bug74456.phpt
Xinchen Hui d6315c2fbb Fixed bug #74456 (Segmentation error while running a script in CLI mode)
Instead of make update_op1_by_const supports FETCH_LIST(CASE), I think
disable it is more safe for 7.1
2017-04-17 20:24:39 +08:00

25 lines
377 B
PHP

--TEST--
Bug #74456 (Segmentation error while running a script in CLI mode)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function small_numbers() {
return [0,1,2];
}
list ($zero, $one, $two) = small_numbers();
var_dump($zero, $one, $two);
?>
--EXPECT--
int(0)
int(1)
int(2)