Re: [SMARTY-DEV] I found a BUG in Smarty!

From: Date: Thu, 16 May 2002 13:02:03 +0000
Subject: Re: [SMARTY-DEV] I found a BUG in Smarty!
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-86@lists.php.net to get a copy of this message
On 16 maja 2002 at 14:52:59 Ivo Jansch <ivo@ibuildings.nl> wrote: > My guess is that the include_php does an include_once() call, so > therefor, the file is included only once. I doubt that this is a bug. I > call it a feature. :) I changed include_once() into include() and now it works correctly. There are lines 1103 and 1111 of Smarty.class.php for version 2.1.1. I think it is not a good idea to have include_once because of side effects which appeared in my example. > But perhaps include_php could have a parameter that states whether > to use include or include_once. I think the default settings should be include(), not include_once(). -- Johann

« previous php.smarty.dev (#86) next »