summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload_010.phpt
blob: 4e5121f23c73d736ce18163acf01f1c66232b340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Initializer of overwritten property should be resolved against the correct class
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.preload={PWD}/preload_overwritten_prop_init.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 Bar)->prop);
?>
--EXPECT--
int(42)