|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-02 15:33 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 16:00:01 2025 UTC |
Description: ------------ "$a = $a . $b;" make a unterminated loop. -> my solutions 1. $a = $a . $b; => $a .= $b; 2. for ($i=0; $i<10; $i++) => for ($i=0; $i<(int)10; $i++) Reproduce code: --------------- <? $a = $a . $b; $a = $a . $b; $a = $a . $b; $a = $a . $b; $a = $a . $b; $a = $a . $b; $a = $a . $b; for ($i=0; $i<10; $i++) { if($i > 100) die('stop@A'); } for ($i=0; $i<10; $i++) { if($i > 100) die('stop@B'); } for ($i=0; $i<10; $i++) { if($i > 100) die('stop@C'); } die('OK'); ?> Expected result: ---------------- OK Actual result: -------------- stop@A