Re: literal fixed .... 8-(

From: Date: Fri, 05 Oct 2001 15:59:18 +0000
Subject: Re: literal fixed .... 8-(
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1611@lists.php.net to get a copy of this message
On Fri, 05 Oct 2001, Micha³ Sznajder wrote: > Witam > > As my bug report on literal was not taken seriously (I mean there was not a > single mail on the list 8-( ) I've looked into Smarty_Compiler.class.php and > fixed it. > Somewhere in this file (around line 248) you wil see > -----CODE------- > case 'literal': > list (,$literal_block) = each($this->_literal_blocks); > $this->_current_line_no += substr_count($literal_block, > "\n"); > return "<?php echo > '".str_replace("'","\'",$literal_block)."'; > ?>\n"; > -----CODE---- > You have to remove last line and insert this one: > return "<?php echo > > ''".str_replace("'","\'",$literal_block)."''; > ?>\n"; > (You see double ' ?) > Fix was done on 1.4.5 .... Why do you need double ''? Doesn't make sense to me. And literal has been working fine, as far as I know. > But my second question is still not answered 8-(. Why 1.4.5 is not > compatible with 1.4.4 ? clear_compile_dir has vanished. I now that it is > somehow depreciated (due to this cache stuff I think) but there should be at > least some small release note about it .... I guess it was missed. I just applied the submitted patch and didn't notice that it replaced clear_compile_dir with another function. -Andrei "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth

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