Re: Bugfixes and some other stuff...

From: Date: Sun, 14 Jul 2002 09:59:22 +0000
Subject: Re: Bugfixes and some other stuff...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5286@lists.php.net to get a copy of this message
".Yç³." <s-m-k@gmx.net> schrieb: > ... comes from missing templates_c directory in _get_auto_filename(). > _get_include_path() already returns FALSE in case it couldn't find the > file, so I suppose lines 1446 ff. in Smarty.class.php should be changed > to something like this: > > // auto_base not found, try include_path > if(!$this->_get_include_path($auto_base,$_include_path)) { > //still not found, create it > mkdir($auto_base, 0700); > $res = $auto_base . DIR_SEP; > } else { > $res = $_include_path . DIR_SEP; > } Anotherone with the same story, Monte. Seems i wasn't the only one using that 'feature'... ;-) [winbug snipped] > Writing something like: > $arg_list[] = "'$arg_name' => $arg_value"; > instead of separating string and variables: > $arg_list[] = "'".$arg_name."' => ".$arg_value; > is 25% slower. Writing something like: echo 'test: '.$test; is about 10% slower than echo "test: $test"; So this can't be said generally. [nice switches snipped] > With only two test CASEs, the code is 5% faster (almost nothing), but > with 4 CASEs, the code executes about 30% faster. Very nice suggestion! Norbert

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