try set_time_limit(0) ?

On Thu, Jun 11, 2009 at 8:05 AM, Ford, Mike <m.f...@leedsmet.ac.uk> wrote:

> On 11 June 2009 12:00, Ashley Sheridan advised:
>
> > On Thu, 2009-06-11 at 10:47 +0000, Jean-Pierre Arneodo wrote:
> >> Hi!
> >> I'm stuck.
> >> I don't understand why the php CLI dies after 3 hours in my script.
> Any
> >> idea to solve? Thanks
> >>
> >>
> >> PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr  7
> 2009
> >> 20:06:36) Linux ubuntu  2.6.24-19-server #1 SMP Wed Jun 18 14:44:47
> UTC
> >> 2008 x86_64 GNU/Linux
> >>
> >> Conf [php.ini]
> >> max_execution_time=0
> >>
> >> <?php
> >> while (true) {
> >>         sleep(5);
> >> }
> >>>
> >>
> >>
> >>
> > The while loop will continue executing until its condition is false.
> As
> > you've got a boolean true as the condition, it will never end.
>
> I think he realises that. His question is why "never" equates to 3 hours
> in his environment.
>
> Cheers!
>
> Mike
>
>  --
> Mike Ford,  Electronic Information Developer,
> C507, Leeds Metropolitan University, Civic Quarter Campus,
> Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom
> Email: m.f...@leedsmet.ac.uk
> Tel: +44 113 812 4730
>
>
> To view the terms under which this email is distributed, please go to
> http://disclaimer.leedsmet.ac.uk/email.htm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to