[PHP-DEV] [PATCH] Autoloading of functions

2004-11-30 Thread Vesselin Atanasov
Hello. Some time ago I have posted a patch that would make PHP call __autoload() for unknown functions too. I didn't get any feedback regarding the patch so I send it to the mailing list once again. The patch adds two constants AUTOLOAD_CLASS and AUTOLOAD_FUNCTION. The __autoload() definition is

[PHP-DEV] [PATCH] Autoloading of functions

2003-08-21 Thread Vesselin Atanasov
Hello. This patch allows __autoload to be called to not only for classes but for functions too. It adds two defines: AUTOLOAD_CLASS and AUTOLOAD_FUNCTION. The prototype for __autoload becomes: function autoload ($autoload_name, $autoload_type); where $autoload_type is AUTOLOAD_CLASS or AUTOLOAD_FUN