Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir

From: Date: Tue, 09 Apr 2002 21:18:07 +0000
Subject: Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3599@lists.php.net to get a copy of this message
See my other message. On Tue, 09 Apr 2002, Andreas Kossmeier wrote: > Andrei Zmievski wrote: > >At compilation time, the plugin may not yet be registered. If we don't > >check for plugins at all in _load_plugins() then you end up with > >messages like: "Undefined function () in ....". > > you *have* to check for plugins and their functions for existance, but > you don't have to look for the location of a needed plugin _file_ at > run-time. if someone registered a function at run-time, then the > function has to exist, this doesn't affect the plugin scanning. > > # compile time > 1 store data about location of used plugins > > # run time > 2 load plugins (locations are in the compiled file) > 3 check existance of functions > > -> no scanning at run-time is needed. right? > > -- > andreas kossmeier > bergfex.at - http://www.bergfex.at > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -Andrei When we eliminate the impossible, whatever remains, however improbable, must be true. -- Sherlock Holmes

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