PHP 4.0 Bug #5552: Infinite loops don't time out.
| From: | seb at cyberdream dot net | Date: | Thu, 13 Jul 2000 14:18:25 +0000 |
| Subject: | PHP 4.0 Bug #5552: Infinite loops don't time out. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-24311@lists.php.net to get a copy of this message | ||
From: seb@cyberdream.net
Operating system: Windows NT Server 4.0 sp4
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Performance problem
Bug description: Infinite loops don't time out.
Once in a while we all (well some of us anyways) will slap our forhead as we watch our web browser
wait for an infinite loop to finish. The problem we're having is that the infinite loops in
PHP do not time-out. The php.exe process takes up over 90% of the CPU thus rendering our server
very slow. I tried just force-quitting the process but I get an access violation error. So we have
to reboot the machine. I know this is our fault and deserve a kick when we do this (we usually get
that kick) but would it be possible kill the process after an X amount of seconds? There's a
timeout variable in php.ini but it's labelled as Unix only.
We are using IIS 4.0 as webserver. (ick)