source: src/router/php7/ext/opcache/tests/bug74019.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 325 bytes
Line 
1--TEST--
2Bug #74019      (Segfault with list)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10
11class A {
12        public function seg() {
13                list($a, $b) = A::CONSTS;
14                var_dump($a, $b);
15                return;
16        }
17        const CONSTS = [1, 2];
18}
19
20$a = new A;
21$a->seg();
22?>
23--EXPECT--
24int(1)
25int(2)
Note: See TracBrowser for help on using the repository browser.