(PHP 7, PHP 8)
posix_setrlimit — Set system resource limits
posix_setrlimit() sets the soft and hard limits for a given system resource.
З кожним процесом пов'язані м'які та жорсткі межі його ресурсів. М'яка межа — ефективний розмір ресурсу. Жорстка межа — це значення, до якого процес може збільшити ефективний розмір ресурсу. Непривілейований процес може змінювати свої м'які межі, але жорсткі межі — лише зменшувати.
resourceThe resource limit constant corresponding to the limit that is being set.
soft_limit
The soft limit, in whatever unit the resource limit requires, or
POSIX_RLIMIT_INFINITY.
hard_limit
The hard limit, in whatever unit the resource limit requires, or
POSIX_RLIMIT_INFINITY.
| Версія | Опис |
|---|---|
| 8.5.0 |
Now throws a ValueError when
hard_limit or soft_limit
is lower than -1, or when soft_limit is greater
than hard_limit.
|