1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00
Files
archived-php-src/sapi/fpm/tests/skipif.inc
2018-06-12 17:59:28 +01:00

15 lines
376 B
PHP

<?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");
}