Re: possible bug in 1.4.4 ?

From: Date: Thu, 19 Jul 2001 14:14:03 +0000
Subject: Re: possible bug in 1.4.4 ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1205@lists.php.net to get a copy of this message
Sorry, I'm an idiot. Change from {{ and }} to { and } delimiters... At 16:08 7/19/2001, Cynic wrote the following: -------------------------------------------------------------- >Upgrading from 1.3.2 to 1.4.4 I encountered a problem: >template containing PHP code gives me w Smarty warning: > >Warning: Smarty: [in login.tpl line 42]: syntax error: >unknown tag - 'echo' in ... Smarty_Compiler.class.php on line 928 > >and this part of a tpl file: > ><pre> ><? >if( isset( $GLOBALS['HTTP_SESSION_VARS'] ) ) { > echo "\$HTTP_SESSION_VARS:\n" ; > foreach( $GLOBALS['HTTP_SESSION_VARS'] as $k => $v ) { > echo "$k\t\t:\t\t$v\n" ; > } >} >echo "\n\n\n" ; >?> ></pre> > >becomes this in tpl.php > ><pre> ><? >if( isset( $GLOBALS['HTTP_SESSION_VARS'] ) ) >} >echo "\n\n\n" ; >?> ></pre> > >this code works w/ 1.3.2, and I've also tried recompiling the >template. FWIW, this bugs shows up with all Smarty::php_handling >values. > > >cynic@mail.cz >------------- >And the eyes of them both were opened and they saw that their files >were world readable and writable, so they chmoded 600 their files. > - Book of Installation chapt 3 sec 7 > > >--- >You are currently subscribed to smarty as: cynic@mail.cz >To unsubscribe send a blank email to $subst('Email.Unsub') >Visit Smarty's homepage at >http://www.phpinsider.com/php/code/Smarty/ ------end of quote------ cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7

« previous php.smarty.general (#1205) next »