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