1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/ext/opcache/tests/preload_trait_static.phpt
Nikita Popov be89a5c7f1 Fixed bug #78950: Preloading trait method with static variables
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.
2019-12-12 11:52:43 +01:00

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