1--TEST--
2pcntl_setpriority() - Wrong process identifier
3--EXTENSIONS--
4pcntl
5--SKIPIF--
6<?php
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