|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10752 infinite loops prevents pages from loading
Submitted: 2001-05-09 10:01 UTC Modified: 2001-05-21 20:37 UTC
From: anabolic at begendik dot com dot tr Assigned:
Status: Closed Package: *Programming Data Structures
PHP Version: 4.0.4pl1 OS: Linux and Win2k
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:
Solve the problem:
28 + 49 = ?
Subscribe to this entry?

 [2001-05-09 10:01 UTC] anabolic at begendik dot com dot tr

<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
for($value=1; $value>0; $value++){


The code above does not work when opened in more than two browsers on the same computer. 

Any ideas?

Thank you. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-09 10:42 UTC]
1.) Why are you doing an infinite loop in the first place?

2.) This is working just fine for me on my linux machine with 4.0.5.

 [2001-05-10 07:45 UTC] anabolic at begendik dot com dot tr
This is going to be used for a chat board, there will be an infinite loop which reads from a mySQL db and flushes the output. 

I tought there was something wrong with my db access code however I realised that, the code was not working altough I have simplified it as I have posted.

I have tried with different os and web server software. I have tried Linux & Apache and Win2k & IIS5.

When I open the page, it works fine. When I open the same page in another window at the same computer it still works fine however if I try to open a third browser window (private chat with 3 person for instance) the browser window freezes and if I close one of the previous browser windows the third window starts working.

Thank you,

 [2001-05-10 11:25 UTC]
This sounds like an unreliable way to accomplish your goal, as you are finding out.

Don't you think it would be better to simply have a META tag refresh the chat session (could be a frame or what not) every X seconds?  Could have the user list in a seperate frame and the message entry area in another.

 [2001-05-10 13:17 UTC] anabolic at begendik dot com dot tr
I have tried a meta tag, but the screen flashes when the page is refreshed.

In addition to my previous postings, when I open two browser windows by clicking on their icons and write the address in the address box, the script works, when I press the ctrl-n keys and open a new browser window the script freezes.

Thank you,

 [2001-05-21 20:37 UTC]
The example code works just fine for me with 5 browser
windows. This is on Linux / Apache.

Unless you can come up with a script that doesn't work,
this case is closed.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 19:01:29 2024 UTC