summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug78986.phpt
blob: 420c828aa4dc7c5407f5d16bd0036f64360e2415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #78986: Opcache segfaults when inheriting ctor from immutable into mutable class
--FILE--
<?php

define('TEST_TEST', 1);

class TestClass2 {
    function __construct() {}
}

class TestClass extends TestClass2 {
    var $test = [
        TEST_TEST => 'test'
    ];
}

var_dump(new TestClass());

?>
--EXPECT--
object(TestClass)#1 (1) {
  ["test"]=>
  array(1) {
    [1]=>
    string(4) "test"
  }
}