1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/opcache/tests/bug78986.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

31 lines
434 B
PHP

--TEST--
Bug #78986: Opcache segfaults when inheriting ctor from immutable into mutable class
--EXTENSIONS--
opcache
--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"
}
}