/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/pcntl/tests/pcntl_setpriority_error_linux.phpt
30 строк
685 B
jcm
QA - pcntl - adjust tests set/get priority check env vars and root user
09 авг 2022, 23:16
09 авг 2022, 23:16
663b037
Код
Авторство
О чём код?
--TEST-- pcntl_setpriority() - Check for errors --EXTENSIONS-- pcntl posix --SKIPIF-- <?php require_once("pcntl_skipif_user_env_rules.inc"); if (!function_exists('pcntl_setpriority')) { die('skip pcntl_setpriority doesn\'t exist'); } if (PHP_OS !== "Linux") { die("skip This test only runs on Linux"); } ?> --FILE-- <?php pcntl_setpriority(-1000, 1); pcntl_setpriority(-1000, 0); ?> --EXPECTF-- Warning: pcntl_setpriority(): Error 1: A process was located, but neither its effective nor real user ID matched the effective user ID of the caller in %s Warning: pcntl_setpriority(): Error 13: Only a super user may attempt to increase the process priority in %s on line %d