1--TEST-- 2pcntl_setpriority() - Basic behaviour 3--CREDITS-- 4Er Galvão Abbott galvao@galvao.eti.br 5# TestFest 2017 PHPRS PHP UG 2017-10-31 6--EXTENSIONS-- 7pcntl 8--SKIPIF-- 9<?php 10 11if (!function_exists('pcntl_setpriority')) { 12 die('skip pcntl_setpriority doesn\'t exist'); 13} 14if (@pcntl_setpriority(-5) === false && pcntl_get_last_error() == PCNTL_EACCES) { 15 die('skip this function needs to run with CAP_SYS_NICE privileges'); 16} 17?> 18--FILE-- 19<?php 20var_dump(pcntl_setpriority(-5)); 21?> 22--EXPECT-- 23bool(true) 24