mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
27 lines
418 B
PHP
27 lines
418 B
PHP
--TEST--
|
|
Preloading inherited method with separated static vars
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_method_static_vars.inc
|
|
--EXTENSIONS--
|
|
opcache
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
Foo::test();
|
|
Bar::test();
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
int(2)
|
|
int(3)
|
|
int(4)
|
|
|
|
int(1)
|
|
int(2)
|