#45147 [Opn->Ver]: unexpected T_ENDFOR
| From: | felipe@php.net | Date: | Tue, 03 Jun 2008 23:31:56 +0000 |
| Subject: | #45147 [Opn->Ver]: unexpected T_ENDFOR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125474@lists.php.net to get a copy of this message | ||
ID: 45147
Updated by: felipe@php.net
Reported By: php at deegital dot de
-Status: Open
+Status: Verified
Bug Type: Scripting Engine problem
Operating System: Vista 32Bit
PHP Version: 5.3CVS-2008-06-02 (snap)
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