1--TEST--
2pcntl_setpriority() - Wrong process identifier
3--SKIPIF--
4<?php
5if (!extension_loaded('pcntl')) {
6    die('skip ext/pcntl not loaded');
7}
8if (!function_exists('pcntl_setpriority')) {
9    die('skip pcntl_setpriority doesn\'t exist');
10}
11?>
12--FILE--
13<?php
14
15try {
16    pcntl_setpriority(0, null, 42);
17} catch (ValueError $exception) {
18    echo $exception->getMessage() . "\n";
19}
20
21?>
22--EXPECT--
23pcntl_setpriority(): Argument #3 ($mode) must be one of PRIO_PGRP, PRIO_USER, or PRIO_PROCESS
24