PHP 4.0 Bug #9971 Updated: Crash

From: Date: Mon, 26 Mar 2001 21:41:24 +0000
Subject: PHP 4.0 Bug #9971 Updated: Crash
Groups: php.dev 
Request: Send a blank email to php-dev+get-49995@lists.php.net to get a copy of this message
ID: 9971 Updated by: lyric Reported By: ufuk.kocolu@isletmekulubu.com Old-Status: Open Status: Bogus Bug Type: Scripting Engine problem Assigned To: Comments: Closing Previous Comments: --------------------------------------------------------------------------- [2001-03-26 16:38:21] lyric@php.net Two things. 1) You should use "$i == 10" for a comparison. By using a single equals, you're assigning 10 to $i, which is always "true". 2) What do you expect it to do? If you want to loop to iterate 10 times, you should use "$i<10" (the loop continues while the second term is TRUE) --------------------------------------------------------------------------- [2001-03-24 12:39:35] ufuk.kocolu@isletmekulubu.com I use PHP4.0.5dev on NT4.0 the code is simple <table border=0> <? for ($i = 0; $i = $newvalue; $i++) { ?> <tr> <td> <? echo $i; ?> </td> </tr> <? } ?> </table> --------------------------------------------------------------------------- [2001-03-24 12:07:35] derick@php.net Can you post the whole source of a script that crashes on the web somewhere? (Or if it's small, put it into this bug report). Can you also tell which version of PHP4 you are using? --------------------------------------------------------------------------- [2001-03-24 12:04:20] ufuk.kocolu@isletmekulubu.com I get a crash, my whole system stops and I have to restart usually. --------------------------------------------------------------------------- [2001-03-24 11:57:10] ufuk.kocolu@isletmekulubu.com I get a crash, my whole system stops and I have to restart usually. --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9971&edit=2

« previous php.dev (#49995) next »