RE: [PHP-DEV] Feature Request: Auto Include a Function
| From: | Derick Rethans | Date: | Mon, 13 Jan 2003 22:10:07 +0000 |
| Subject: | RE: [PHP-DEV] Feature Request: Auto Include a Function | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93424@lists.php.net to get a copy of this message | ||
On Mon, 13 Jan 2003, Brian T. Allen wrote:
> If a hash file were used it would only have to "search" for the function
> once, and even then only in the functions directory (like the include
> directory, but specifically for functions). After that the order would
> be:
>
> 1) Execute the function
> 2) If the function doesn't exist check the hash file and include it
> 3) If it's not in the hash file search for it, include it, then hash it
> 4) If it can't be found issue an error message
quoting G.S.:
"i think php should be smart enough to recognize my typos and
then include the appropriate library for any function call I make.
Unless I include it from two places, in which case it should always
choose the file on the left."
"Oh, and I just realized that in some countries code inclusion is right
handed (britain, singapore, australia and brunei I believe). Do you
think you could incorporate LOCALE support into the auto-includer to
appropriately choose the right file except in non-leftist countries?"
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------