]> granicus.if.org Git - php/commit
Fix #77291: magic methods inherited from a trait may be ignored
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 16 Dec 2018 12:30:11 +0000 (13:30 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 16 Dec 2018 12:30:11 +0000 (13:30 +0100)
commit0061db5503497458a85c40fb6bf1e2da80e7a036
treee3fe633baef2ab537aa267eeb20bd4cc9be844c0
parent54739c7e662d3c617ce08680f8447ae4e98c6a04
Fix #77291: magic methods inherited from a trait may be ignored

When adding methods from a trait, we must not assume that a method name
with the same length as the name of the using class is either a PHP 4
style constructor, or not a magic method at all – it may well be
another magic method.

We mostly preserve the spirit of the optimization which caused this
regression, and avoid string comparisons for all method names which can
never be magic methods.
NEWS
Zend/tests/bug77291.phpt [new file with mode: 0644]
Zend/zend_inheritance.c