PHP 4.0 Bug #9676: Feature request for set_time_limit
| From: | tboothby at felfel dot com | Date: | Sun, 11 Mar 2001 03:04:31 +0000 |
| Subject: | PHP 4.0 Bug #9676: Feature request for set_time_limit | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48621@lists.php.net to get a copy of this message | ||
From: tboothby@felfel.com
Operating system: Red Hat Linux 6.2
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: Feature request for set_time_limit
Taken from the user notes about set_time_limit()
"malhavoc at stomped.com
23-Feb-2001 05:48
I've noticed that using this function doesn't seem to block things that make calls to
services and wait for a response. Setting set_time_limit(2) and then making a call to
gethostbyaddr(ip.that.does.not.resolve) just sits there until it times out.
It would be -really- nice if there was a perl-esque type function like alarm() that lets you set
timeouts for specific sections of code, rather than entire scripts. I'd have great use for a
feature that would enable me to run non crucial pieces of code for a few seconds, and then give up
and move on if it takes too long."
This feature would be very nice.
Thanks for all your efforts,
--tom
--
Edit Bug report at: http://bugs.php.net/?id=9676&edit=1