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