Fixed bug #64235 (Insteadof not work for class method in 5.4.11) #284

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@reeze
Contributor
reeze commented Feb 20, 2013

After the traits refactor, it "fixed" the traits precedence which could use class but not trait that was not intend from the design and manual.

this PR fixes the BC, and the same time deprecate the behavior.

This is a 5.4 only patch.

@laruence
Member

actually, I was looking into this, I have thought the similar fix of you, but
unfortunatly, it is wrong, thinking of this:

methodParent();
@php-pulls

Comment on behalf of laruence at php.net:

wrong fix, this fix need more works than it look like.

@php-pulls php-pulls closed this Feb 20, 2013
@reeze
Contributor
reeze commented Feb 20, 2013

What intend output in your code?

http://3v4l.org/UpMCW after the fix, 5.4's behavior is consist

@laruence
Member

yes, it's consistent, but do you think it's right? do you think it's acceptable ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment