mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

Negative return values are valid and denote higher priority. https://man7.org/linux/man-pages/man2/setpriority.2.html
19 lines
347 B
PHP
19 lines
347 B
PHP
--TEST--
|
|
pcntl_getpriority() - Basic behaviour
|
|
--CREDITS--
|
|
Er Galvão Abbott galvao@galvao.eti.br
|
|
# TestFest 2017 PHPRS PHP UG 2017-10-29
|
|
--EXTENSIONS--
|
|
pcntl
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('pcntl_getpriority')) {
|
|
die('skip - pcntl_getpriority doesn\'t exist');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(pcntl_getpriority());
|
|
?>
|
|
--EXPECTF--
|
|
int(%i)
|