Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-19 Thread georges
Yes, i finally rewritten major part of my code following the recommended SF2 standard for naming convention of trait/interfaces. Thanks Internals. Regards, Geo. Geolim4 2015-04-19 15:33 GMT+02:00 François Laupretre : > > De : georges [mailto:geol...@gmail.com] > > > > Currently spl_autoload_re

RE: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-19 Thread François Laupretre
> De : georges [mailto:geol...@gmail.com] > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument​, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Trait? As others already said,

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Stanislav Malyshev
Hi! > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument​, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Trait? I'm not sure it would be very useful for the engine. It is obv

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Nikita Popov
On Sat, Apr 18, 2015 at 4:24 PM, georges wrote: > ​Hi php internals, > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument​, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Tr

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread georges
Effectively from this perspective, i get it. I'm not a fan of PSR-4 convention as they are not officialy supported by PHP but i understand your both (Ryan, Anthony) point of view. Also well done for catching the Hungarian notation, i just noticed that is a bad pratice. Anyway, thanks for your (qu

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Ryan Pallas
On Sat, Apr 18, 2015 at 8:24 AM, georges wrote: > ​Hi php internals, > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument​, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Tr

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Anthony Ferrara
Georges, On Sat, Apr 18, 2015 at 10:24 AM, georges wrote: > Hi php internals, > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface

[PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread georges
​Hi php internals, Currently spl_autoload_register() pass the name of the class entity to the first *Callable* argument​, but there is now way (as i far i know) to know what kind of entity we're looking for. -Class ? -Interface ? -Trait? A second argument should be added to the *Callable* functi