possible bug in 1.4.4 ?
| From: | Cynic | Date: | Thu, 19 Jul 2001 14:08:56 +0000 |
| Subject: | possible bug in 1.4.4 ? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1204@lists.php.net to get a copy of this message | ||
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