mirror of
https://github.com/php/php-src.git
synced 2026-03-30 20:22:36 +02:00
Resolve property initializers against the correct class, even when parent slots are reused.
16 lines
334 B
PHP
16 lines
334 B
PHP
--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'); ?>
|
|
--FILE--
|
|
<?php
|
|
var_dump((new Bar)->prop);
|
|
?>
|
|
--EXPECT--
|
|
int(42)
|