mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
24 lines
440 B
PHP
24 lines
440 B
PHP
--TEST--
|
|
pcntl_setpriority() - Wrong process identifier
|
|
--EXTENSIONS--
|
|
pcntl
|
|
--SKIPIF--
|
|
<?php
|
|
|
|
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
|