blob: 25910a8e05e5634e0ebbbe1c88c680e0b68a33a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
// Do not run on Windows
if (substr(PHP_OS, 0, 3) == 'WIN') {
die("skip not for Windows");
}
// Running as root is not allowed without TEST_FPM_RUN_AS_ROOT env
if (!getmyuid() && !getenv('TEST_FPM_RUN_AS_ROOT')) {
die('skip Refusing to run as root');
}
require_once "tester.inc";
if (!FPM\Tester::findExecutable()) {
die("skip php-fpm binary not found");
}
|