summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload_static_var_inheritance.phpt
blob: dd5e4308a9ece3081e0481fac126cf4333c9dd4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #79548: Preloading segfault with inherited method using static variable
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.preload={PWD}/preload_static_var_inheritance.inc
--SKIPIF--
<?php
require_once('skipif.inc');
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
?>
--FILE--
<?php
var_dump((new B)->test());
?>
--EXPECT--
NULL