mirror of
https://github.com/php/php-src.git
synced 2026-04-20 22:41:20 +02:00
We need to make sure that trait methods with static variables allocate a separate MAP slot for the static variables pointer, rather than working in-place.
17 lines
290 B
PHP
17 lines
290 B
PHP
--TEST--
|
|
Preload trait with static variables in method
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_trait_static.inc
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
$bar = new Bar;
|
|
$bar->test();
|
|
?>
|
|
--EXPECT--
|
|
NULL
|