mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
* Fix run-tests.php --file-cache-prime with multiple workers We want to remove the directory only before running tests, rather than for every test. That causes races, but also defeats the purpose of priming the cache. * Move opcache.opt_debug_level tests These need to live in ext/opcache/tests to be skipped by run-tests.php for the --file-cache-use tests, which won't compile the files and thus won't dump the output. * Mark preloading test as opcache.file_cache_only=0 Preloading requires shm.
21 lines
303 B
PHP
21 lines
303 B
PHP
--TEST--
|
|
PFA preloading
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.preload={PWD}/preloading.inc
|
|
opcache.file_cache_only=0
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(test()(1));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|
|
int(2)
|