From:             miguelfd at sigmanet dot com dot br
Operating system: Window 2k
PHP version:      4.3.8
PHP Bug Type:     Unknown/Other Function
Bug description:  Error on the "while()"

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 bug report at http://bugs.php.net/?id=30325&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30325&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30325&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30325&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30325&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30325&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30325&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30325&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30325&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30325&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30325&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30325&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30325&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30325&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30325&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30325&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30325&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30325&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30325&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30325&r=mysqlcfg

Reply via email to