English Brazilian Portuguese

Scope propagation in static methods and call_user_func()

28/07/2010

The entry in the backward incompatible changes says: The call_user_func() family of functions now propagate $this even if the callee is a parent class.  Lets first give some examples for PHP 5.2… starting with an ordinary static call: This example contains two odd things – the first is that a dynamic method is called statically and no errors are produced at all and the second is that $this is...

Tags: BC breaks PHP 5.3

Continue reading...

Backward incompatible changes in php 5.3

27/07/2010

As PHP 5.3 is a major new release it could be expected to have some backward incompatible changes. Some of the changes are clearly explained in the docuemtnation, others aren't that obvious. For example this cryptic line: The call_user_func() family of functions now propagate $this even if the callee is a parent class. So in few posts we will try to clarify some: Scope propagation in static...

Tags: BC breaks PHP 5.3

Continue reading...