Files
Ilija Tovilo 387a3afc6b Fix run-tests.php --file-cache-prime with multiple workers (GH-22886)
* 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.
2026-07-25 22:48:02 +02:00

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)