Re: posix_setrlimit (patch attached)

From: Date: Tue, 24 Aug 2004 20:32:36 +0000
Subject: Re: posix_setrlimit (patch attached)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-12334@lists.php.net to get a copy of this message
On Tue, 24 Aug 2004, Marcin [iso-8859-2] Gibu?a wrote: > Hi, > this patch adds posix_setrlimit function (in posix extension), which can be > useful in standalone apps to lower your resources limits (for example cpu > limit). > > Example usage is: > <?php > $a = array('cpu' => array('1', '3')); > posix_setrlimit($a); > ?> > > Could you review it and consider to apply if it's ok? I browser through it and it seems you put it in the HAVE_GETRLIMIT define, you might want to add a new config/m4 check for it and use HAVE_SETRLIMIT around it. Conceptually I see no reason why we should not add it. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#12334) next »