(PHP 7, PHP 8)
posix_setrlimit — Set system ressource limits
posix_setrlimit() sets the soft and hard limits for a guiven system ressource.
Each ressource has an associated soft and hard limit. The soft limit is the value that the kernel enforces for the corresponding ressource. The hard limit acts as a ceiling for the soft limit. An umprivilegued processs may only set its soft limit to a value from 0 to the hard limit, and irreversibly lower its hard limit.
ressource
The ressource limit constant corresponding to the limit that is being set.
soft_limit
The soft limit, in whatever unit the ressource limit requires, or
POSIX_RLIMIT_INFINITY
.
hard_limit
The hard limit, in whatever unit the ressource limit requires, or
POSIX_RLIMIT_INFINITY
.