I think the main idea of this RFC: Run the code, if we had never entered
in loop.
In this case more sence to change "for .. else" condition to this:
If second expression is equal FALSE before looping(but after run first
expression of course), we run "else" code.
By example:
for (exp1;exp2;exp3) {
exp4;
} else {
exp5;
}
must be equal
$notLooping = true;
for (exp1;exp2;exp3) {
exp4;
$notLooping = false;
}
if ($notLooping) {
exp5;
}
With regards, Alexander Moskaliov
[email protected]
2012/5/10 Dmitri Ravazin <[email protected]>
> Hi,
>
> I registered account 'ravazin' on wiki.
> I'd like to write an RFC based on bugs:
>
> https://bugs.php.net/bug.php?id=26411
> https://bugs.php.net/bug.php?id=46240
> https://bugs.php.net/bug.php?id=61222
>
> I think it's time these requests got some sort of resolution :)
>