<?php var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 128, 128)); var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 129, 128));
/** * Set system resource limits * * @param int $resource The * resource limit constant * corresponding to the limit that is being set. * @param int $softlimit The soft limit, in whatever unit the resource limit requires, or * POSIX_RLIMIT_INFINITY. * @param int $hardlimit The hard limit, in whatever unit the resource limit requires, or * POSIX_RLIMIT_INFINITY. * * @return bool */ public function setrlimit(int $resource, int $softlimit, int $hardlimit) : bool { return posix_setrlimit($resource, $softlimit, $hardlimit); }