ID: 45147 Updated by: [EMAIL PROTECTED] Reported By: php at deegital dot de -Status: Verified +Status: Bogus Bug Type: Scripting Engine problem Operating System: Vista 32Bit PHP Version: 5.3CVS-2008-06-02 (snap) New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. bug #45372 is newer but about the same issues with more discussion. Closing this in favour of the other one. Previous Comments: ------------------------------------------------------------------------ [2008-06-02 09:16:27] php at deegital dot de Description: ------------ Tokenizer seems to have problems with some php/html mix constructions (found this in a "compiled" smarty template) Works, if if, else and endif is splitted into multiple lines Reproduce code: --------------- <?php for ($i = 0; $i == 0; $i++): ?> <?php if (true): ?>#<?php else: ?>#<?php endif; ?> <?php endfor; ?> Expected result: ---------------- # Actual result: -------------- Parse error: syntax error, unexpected T_ENDFOR in [foo] on line 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45147&edit=1