Re: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-14 Thread Andrey Hristov
Hi, on the last week's iSeminar Zeev said that in ZE2(php5) there will be new interesting function for implementing in userland. Its name will be __autoload(). It will be called in case the code wants to instantiate a class that is unknown. The function should require/include the file where the im

RE: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Derick Rethans
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

RE: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Sterling Hughes
onday, January 13, 2003 2:16 PM > > Subject: Re: [PHP-DEV] Feature Request: Auto Include a Function > > > > > > I'm not a PHP Developer but I see a few problems with this. > > I'm not a PHP Developer either, but I use it 12 hours a day in my work. >

RE: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Brian T. Allen
> From: Andrew Brampton [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 13, 2003 2:16 PM > Subject: Re: [PHP-DEV] Feature Request: Auto Include a Function > > > I'm not a PHP Developer but I see a few problems with this. I'm not a PHP Developer either, but I

Re: [PHP-DEV] Feature Request: Auto Include a Function

2003-01-13 Thread Andrew Brampton
I'm not a PHP Developer but I see a few problems with this. Since a PHP script is re-evaluated/"compiled" on each execution it would mean PHP would have to look through all your .php files for this file. This could be very time consuming, espically since it has to do it every execution. Also what