mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
23 lines
492 B
PHP
23 lines
492 B
PHP
--TEST--
|
|
pcntl_setpriority() - Wrong process identifier
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('pcntl')) {
|
|
die('skip ext/pcntl not loaded');
|
|
}
|
|
if (!function_exists('pcntl_setpriority')) {
|
|
die('skip pcntl_setpriority doesn\'t exist');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
pcntl_setpriority(0, null, 42);
|
|
} catch (ValueError $exception) {
|
|
echo $exception->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
pcntl_setpriority(): Argument #3 ($mode) must be one of PRIO_PGRP, PRIO_USER, or PRIO_PROCESS
|