Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-07 Thread Stan Vass
This creates problems for opcode caches since the classes are all precompiled and usually optimized to the point where the opcodes that loads them are NOP'ed away and you just have the full class table cached in memory for each op_array. Walking through that class table on every request and loo

Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-04 Thread Benjamin Eberlei
Couldn't you just write an autoloader that triggers this method if available on any class autoloaded? This obviously only works if you are using the one class in one file approach, but would be just as powerful then. On Thu, 3 Feb 2011 21:06:00 -0800, Chris Stockton wrote: > Hello, >

Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-03 Thread Chris Stockton
Hello, On Thu, Feb 3, 2011 at 8:53 PM, Rasmus Lerdorf wrote: > > This creates problems for opcode caches since the classes are all > precompiled and usually optimized to the point where the opcodes that > loads them are NOP'ed away and you just have the full class table cached > in memory for eac

Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-03 Thread Rasmus Lerdorf
On 2/3/11 8:49 PM, Chris Stockton wrote: > Hello, > > On Thu, Feb 3, 2011 at 8:38 PM, Ben Schmidt > wrote: >> >> Do you yourself have any situation where this is useful? Does it solve >> some problem? Does it enable you to do things better than before? >> >> Ben. >> > > It does not provide a sol

Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-03 Thread Chris Stockton
Hello, On Thu, Feb 3, 2011 at 8:38 PM, Ben Schmidt wrote: > > Do you yourself have any situation where this is useful? Does it solve > some problem? Does it enable you to do things better than before? > > Ben. > It does not provide a solution to a currently unsolvable problem, it is simply a con

Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-03 Thread Ben Schmidt
On 4/02/11 3:30 PM, Chris Stockton wrote: Hello, I haven't seen a magic method proposed in a while so I am not sure how people feel about them, obviously adding them can break BC (although it is recommended people should not use __). I'm sure a good amount of use/desire needs to be shown for inc