mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.4'
This commit is contained in:
commit
951d2f81c7
2 changed files with 3 additions and 7 deletions
|
@ -1727,9 +1727,7 @@ PHP_FUNCTION(pcntl_setcpuaffinity)
|
||||||
|
|
||||||
cpu = (zend_long)tmp;
|
cpu = (zend_long)tmp;
|
||||||
} else {
|
} else {
|
||||||
zend_string *wcpu = zval_get_string_func(ncpu);
|
zend_argument_type_error(2, "value must be of type int|string, %s given", zend_zval_value_name(ncpu));
|
||||||
zend_argument_value_error(2, "cpu id invalid type (%s)", ZSTR_VAL(wcpu));
|
|
||||||
zend_string_release(wcpu);
|
|
||||||
PCNTL_CPU_DESTROY(mask);
|
PCNTL_CPU_DESTROY(mask);
|
||||||
RETURN_THROWS();
|
RETURN_THROWS();
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ try {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
pcntl_setcpuaffinity(null, [1, array(1)]);
|
pcntl_setcpuaffinity(null, [1, array(1)]);
|
||||||
} catch (\ValueError $e) {
|
} catch (\TypeError $e) {
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -64,6 +64,4 @@ pcntl_setcpuaffinity(): Argument #2 ($cpu_ids) cpu id invalid value (def)
|
||||||
pcntl_setcpuaffinity(): Argument #2 ($cpu_ids) cpu id must be between 0 and %d (%d)
|
pcntl_setcpuaffinity(): Argument #2 ($cpu_ids) cpu id must be between 0 and %d (%d)
|
||||||
pcntl_setcpuaffinity(): Argument #2 ($cpu_ids) cpu id must be between 0 and %d (-1024)
|
pcntl_setcpuaffinity(): Argument #2 ($cpu_ids) cpu id must be between 0 and %d (-1024)
|
||||||
pcntl_getcpuaffinity(): Argument #1 ($process_id) invalid process (-1024)
|
pcntl_getcpuaffinity(): Argument #1 ($process_id) invalid process (-1024)
|
||||||
|
pcntl_setcpuaffinity(): Argument #2 ($cpu_ids) value must be of type int|string, array given
|
||||||
Warning: Array to string conversion in %s on line %d
|
|
||||||
pcntl_setcpuaffinity(): Argument #2 ($cpu_ids) cpu id invalid type (Array)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue