php-src/ext/opcache/tests/preload_002.phpt
Dmitry Stogov d5955d9587 typo
2018-11-15 00:10:17 +03:00

20 lines
390 B
PHP

--TEST--
Preloading prototypes
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.preload={PWD}/preload.inc
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
var_dump((new ReflectionMethod('x', 'foo'))->getPrototype()->class);
var_dump((new ReflectionMethod('x', 'bar'))->getPrototype()->class);
?>
OK
--EXPECT--
string(1) "b"
string(1) "a"
OK