Re: [PHP-DEV] __autoload proposal

2007-12-22 Thread Stanislav Malyshev
Now __autoload have only one argument which is a name of searched class. Second argument could be a namespace where class is searched. It should have default value for backward compatibility. What for? It always receives full name of the class, whatever it is. I think it is the most flexible s

Re: [PHP-DEV] __autoload proposal

2007-12-22 Thread David Coallier
On Dec 22, 2007 3:43 PM, Wojciech Malota <[EMAIL PROTECTED]> wrote: > I have a proposal for prototype of __autoload function in PHP 5.3.0. > In this version of PHP namespaces will be available. > Prototype of __autoload could look like this: > > __autoload($classname, $namespace = null); > > Now __

[PHP-DEV] __autoload proposal

2007-12-22 Thread Wojciech Malota
I have a proposal for prototype of __autoload function in PHP 5.3.0. In this version of PHP namespaces will be available. Prototype of __autoload could look like this: __autoload($classname, $namespace = null); Now __autoload have only one argument which is a name of searched class. Second argume

[PHP-DEV] __autoload proposal

2007-12-22 Thread Wojciech Malota
I have a proposal for prototype of __autoload function in PHP 5.3.0. In this version of PHP namespaces will be available. Prototype of __autoload could look like this: __autoload($classname, $namespace = null); Now __autoload have only one argument which is a name of searched class. Second argume