ID: 30325 Updated by: [EMAIL PROTECTED] Reported By: miguelfd at sigmanet dot com dot br -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Window 2k PHP Version: 4.3.8 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php PHP does not check code for unterminated loops, which in many situations are perfectly valid constructs. It does however has an execution time limit to prevent a loop from forever trashing your CPU. Previous Comments: ------------------------------------------------------------------------ [2004-10-04 19:24:58] miguelfd at sigmanet dot com dot br Description: ------------ The while() statement accept the foollowing comand, that is an unending while() loop. Reproduce code: --------------- $i = 0; while ($i == $i) { echo "$i<br>\n"; flush(); $i++; } Expected result: ---------------- The PHP detects that it will be an unending loop and warn. Or maybe some directive in the php.ini file that allows or deny this and, if this is set to false, warns when some loop of this kind happens. Actual result: -------------- It is an eternal looping... That will ever show unending result and makes the server low... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30325&edit=1
