In the past, this code would not have hit the max loop limit because of the
sleep.
PHP Code:
function onCreated() {
for (temp.i = 0; temp.i < 100000; temp.i ++) {
echo(temp.i);
if ((temp.i + 1) % this.maxlooplimit == 0) {
echo("sleeping");
sleep(10);
}
}
}
Now, the loop limit is hit on the next iteration after the sleep, regardless of the length of the sleep; the result is the same with a 0.1 second sleep and a 10 second one.
Quote:
Originally Posted by RC Output
9996
9997
9998
9999
sleeping
Script: Loop limit exceeded at line 2 in script of TempLoopTest
|
This bug exists on at least Era Dev, Era, and Kingdoms Debug.