xref: /PHP-8.2/ext/opcache/tests/bug74456.phpt (revision e9f783fc)
1--TEST--
2Bug #74456 (Segmentation error while running a script in CLI mode)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11
12
13function small_numbers() {
14        return [0,1,2];
15}
16
17list ($zero, $one, $two) = small_numbers();
18
19var_dump($zero, $one, $two);
20?>
21--EXPECT--
22int(0)
23int(1)
24int(2)
25