php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5552 Infinite loops don't time out.
Submitted: 2000-07-13 10:18 UTC Modified: 2000-07-13 10:27 UTC
From: seb at cyberdream dot net Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0 Release Candidate 1 OS: Windows NT Server 4.0 sp4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
9 - 7 = ?
Subscribe to this entry?

 
 [2000-07-13 10:18 UTC] seb at cyberdream dot net
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-13 10:27 UTC] sterling at cvs dot php dot net
Fixed in 4.0.1pl2.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 04:01:30 2024 UTC