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