ID:               45147
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to