Re: possible bug in 1.4.4 ?

From: Date: Thu, 19 Jul 2001 14:23:40 +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-1207@lists.php.net to get a copy of this message
no, it was caused by delimiters set to single braces (I have the installation of 1.3.2 set to {{ and }}. At 16:12 7/19/2001, Ingo Baab (hiweb) wrote the following: -------------------------------------------------------------- >change "<?" to "{php}" and "?>" to "{/php}", >or i'm wrong? >-ingo baab > >Cynic wrote: > >> 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 >> >> --- >> You are currently subscribed to smarty as: baab@hiweb.de >> To unsubscribe send a blank email to $subst('Email.Unsub') >> Visit Smarty's homepage at >> http://www.phpinsider.com/php/code/Smarty/ > >-- >hi.web@ Internet Service GmbH >Kriegsstraße 160 76133 Karlsruhe > > > >--- >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 (#1207) next »