Skip to content

Commit 1c9a49e

Browse files
committed
Add opcache.preload_user=root to run-tests.php if root
This prevents breaking the testsuite when running it as root.
1 parent 828c93b commit 1c9a49e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

run-tests.php

+3
Original file line numberDiff line numberDiff line change
@@ -2056,6 +2056,9 @@ function run_test(string $php, $file, array $env): string
20562056
// Make sure warnings still show up on the second run.
20572057
$ini_settings['opcache.record_warnings'] = '1';
20582058
}
2059+
if (extension_loaded('posix') && posix_getuid() === 0) {
2060+
$ini_settings['opcache.preload_user'] = 'root';
2061+
}
20592062

20602063
// Any special ini settings
20612064
// these may overwrite the test defaults...

0 commit comments

Comments
 (0)