Re: Check for infinite loop?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Check for infinite loop?

From: Colin McKinnon <colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com>
Date: Thu Oct 20 2005 - 22:14:45 CEST

el_roachmeister@yahoo.com wrote:

> I suspect there might be an infinite loop in my code, however, php
> seems to timeout and continue running the script. Is there a way to
> check for this?

With vi:

/for
o
print "I'm in the first loop!<br />";
/
o
print "I'm in the second loop<br />";
(repeat until it wraps)
/while
o
print "I'm in the first while loop!<br />";
/
o
print "I'm in the scond while loop<br />";

etc.
C.
Received on Mon Oct 24 02:11:23 2005