Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-07 Thread Sebastian Krebs
2012/11/7 Laupretre François francois.laupre...@francetv.fr De : sebastian.krebs.ber...@gmail.com I hope you find more support on this than I had. Technically speaking, it would be easy to extend autoloading to functions and constants. It can even be done without BC breaks, combining

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-07 Thread Benjamin Eberlei
There is an RFC already that discusses the topic at length, we should really have this functionality: https://wiki.php.net/rfc/autofunc On Wed, Nov 7, 2012 at 9:12 AM, Sebastian Krebs krebs@gmail.com wrote: 2012/11/7 Laupretre François francois.laupre...@francetv.fr De :

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-07 Thread Laupretre François
part de Sebastian Krebs Envoyé : mercredi 7 novembre 2012 09:12 À : PHP internals list Objet : Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions? 2012/11/7 Laupretre François francois.laupre...@francetv.fr De : sebastian.krebs.ber...@gmail.com I hope you

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Laupretre François
I've asked this question for a while (one, or two years ago or so). Must say, that I didn't remember the answer, but I would like to see autoloading for namespace-constants and functions too :) I proposed extending the autoload mechanism to functions and constants several times since I

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Levi Morrison
On Tue, Nov 6, 2012 at 11:15 AM, Laupretre François francois.laupre...@francetv.fr wrote: A summary of the talk we had (6 years ago !) : http://devzone.zend.com/616/zend-weekly-summaries-issue-306/ If functions and classes use the same autoloader, then you can use a function to filename

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Sebastian Krebs
2012/11/6 Laupretre François francois.laupre...@francetv.fr I've asked this question for a while (one, or two years ago or so). Must say, that I didn't remember the answer, but I would like to see autoloading for namespace-constants and functions too :) I proposed extending the autoload

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Laupretre François
...@gmail.com] Envoyé : mardi 6 novembre 2012 20:17 À : Laupretre François Cc : Sebastian Krebs; PHP internals list; petercowb...@gmail.com; Nikita Popov Objet : Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions? On Tue, Nov 6, 2012 at 11:15 AM, Laupretre François

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Laupretre François
De : sebastian.krebs.ber...@gmail.com I hope you find more support on this than I had. Technically speaking, it would be easy to extend autoloading to functions and constants. It can even be done without BC breaks, combining 'old-style' and 'new- style' autoloaders without ambiguity

[PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-05 Thread Peter Cowburn
Pushing to internals list. On 5 November 2012 20:41, Levi Morrison morrison.l...@gmail.com wrote: I hear people complaining about this out in user-land all the time, but I've never seen anyone from internals respond. With practically everyone using an autoloader these days, it really borks

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-05 Thread Nikita Popov
On Mon, Nov 5, 2012 at 10:16 PM, Peter Cowburn sala...@php.net wrote: On 5 November 2012 20:41, Levi Morrison morrison.l...@gmail.com wrote: I hear people complaining about this out in user-land all the time, but I've never seen anyone from internals respond. With practically everyone

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-05 Thread Sebastian Krebs
2012/11/5 Peter Cowburn sala...@php.net Pushing to internals list. On 5 November 2012 20:41, Levi Morrison morrison.l...@gmail.com wrote: I hear people complaining about this out in user-land all the time, but I've never seen anyone from internals respond. With practically everyone using