#45147 [Ver->Bgs]: unexpected T_ENDFOR

From: Date: Fri, 27 Jun 2008 20:39:47 +0000
Subject: #45147 [Ver->Bgs]: unexpected T_ENDFOR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126081@lists.php.net to get a copy of this message
ID: 45147 Updated by: johannes@php.net 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

« previous php.bugs (#126081) next »