d7c2eac643
This is gone as of Zend 5.4: as far as I can tell, anything other than a positive integer literal is a parse error (including constants, "1 + 1", etc.) Let's get rid of it. The mere fact that this construct ever existed in any programming language is deeply horrifying. This lets us get rid of all the goofy code that subtracts 1 from the top value on the stack, does IterFree if needed, and jumps to the next level. Now, we can hardcode the necessary IterFrees and do a single jump, right where the break/continue actually is. The error message for using a non-integer expression is less helpful than Zend's (Zend says "non-constant operand not supported"; ours is "unexpected T_VARIABLE" or whatever). It wouldn't be that hard to do in our parser, if we think that's helpful. I don't think it matters, though.
2 linhas
129 B
Plaintext
2 linhas
129 B
Plaintext
HipHop Fatal error: 'continue' operator accepts only positive numbers in %s/hphp/test/slow/continue_statement/zero.php on line 5
|