|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-04 22:30 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Feb 07 08:00:01 2026 UTC |
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...