summaryrefslogtreecommitdiff
path: root/sapi/fpm/tests/skipif.inc
blob: eec65a41122c15740020caae83f360c6e98aaebd (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");
}