Re: Re: Bug #3830 Updated: Function to timeout/break off a function

From: Date: Mon, 28 Jan 2002 23:54:45 +0000
Subject: Re: Re: Bug #3830 Updated: Function to timeout/break off a function
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-78368@lists.php.net to get a copy of this message
On Mon, 2002-01-28 at 15:08, Wico de Leeuw wrote: > Hiya, > > thats not true... register_tcik_function is for between 2 instructions > (lines?) and will not break into a long takeing mysql_select > (correct me if i'm wrong) > > But i still think that such a function will improve php > > Greetz, > > Wico I believe you are correct--I reopened this in the Bug Database a little while ago. Cheers, Torben > At 21:54 28-1-2002 +0000, Bug Database wrote: > >ATTENTION! Do NOT reply to this email! > >To reply, use the web interface found at > >http://bugs.php.net/?id=3830&edit=2 > > > > > >ID: 3830 > >Updated by: yohgaki > >Reported By: wico@cnh.nl > >Old Status: Analyzed > >Status: Closed > >Bug Type: Feature/Change Request > >Operating System: linux > >PHP Version: 4.0 Beta 4 Patch Level 1 > >New Comment: > > > >register_tick_function() can be used. > > > > > >Previous Comments: > >------------------------------------------------------------------------ > > > >[2000-07-31 22:49:52] waldschrott@php.net > > > >well, could be quite nice > > > >------------------------------------------------------------------------ > > > >[2000-03-14 11:27:16] wico@cnh.nl > > > >Hiya, > > > >i did like to see a function wich breaks into another when it take to > >long: > > > ><? > > > >funtion Hour () { > > sleep 3600; > >} > > > >// break after say 2 secs > >$timeout = Timeout_function(hour(), 2); > >if ($timeout) { > > // function took to long > >} else { > > // function compledet normal > >} > > > >?> > > > >------------------------------------------------------------------------ > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.dev (#78368) next »