Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mike Lively's Blog:
Late Static Binding - Changes to parent
Nov 26, 2007 @ 15:37:00

Mike Lively has shared some of his thoughts on the late static binding functionality that will be in the upcoming PHP 5.3 - specifically the relationships of parents and children it has.

I won't rehash all of the arguments as you can quite easily find out my full thoughts by previous posts and on that mailing list thread. To put it simply I feel that somehow there needs to be a way to call methods in a parent class without losing the ability to reference back to the original called static.

He gives an example of what he's talking about (code) and, to help further his cause he's created three patches to make it work how he'd like.

tagged: latestaticbinding parent change child patch latestaticbinding parent change child patch

Link:


Trending Topics: