[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-dev
Subject: [SMARTY-DEV] Bug: Smarty produces PHP parse error
From: 217.8.203.171
Date: 2005-07-29 7:09:10
Message-ID: 84.E8.50784.466D9E24 () pb1 ! pair ! com
[Download RAW message or body]
I get a parse error, when i use smarty. To reproduce, you can take the demo
(which comes with smarty) and add the following files:
-- debug.php
<?php
require '../libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = true;
$smarty->assign("array",array("Doe","Smith","Johnson","Case"));
$smarty->assign("j",1);
$smarty->display('debug.tpl');
?>
-- debug.tpl
{if $tree[$j] or $tree[$j-1]}
a
{/if}
-- error produced
Parse error: parse error in
/www/dev/sebastian/www/smarty/demo/templates_c/%%6B^6B7^6B774C3E%%debug.tpl.
php on line 3
Thanks for developping smarty as well as for fixing.
Sebastian Haller
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic