Edit report at https://bugs.php.net/bug.php?id=60717&edit=1
ID: 60717 Updated by: ras...@php.net Reported by: Jared dot Williams1 at ntlworld dot com Summary: Order of traits in use statement can cause a fatal error -Status: Open +Status: Assigned Type: Bug Package: Class/Object related Operating System: Ubuntu 11.10 PHP Version: 5.4.0RC5 -Assigned To: +Assigned To: gron Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2012-01-11 17:24:31] Jared dot Williams1 at ntlworld dot com Description: ------------ The fatal trigger only occurs when the order of the use statement is class HTMLHelper implements Helper { use TextUTF8, TextArea, HTMLAttributes; } If the use statement is reordered... class HTMLHelper implements Helper { use TextArea, HTMLAttributes, TextUTF8; } then code is fine. I guess that some testing of abstract methods is missing somewhere? Test script: --------------- https://gist.github.com/1595674 Expected result: ---------------- No fatal error Actual result: -------------- PHP Fatal error: Can't inherit abstract function HTML\HTMLAttributes::text() (previously declared abstract in HTML\TextArea) in /var/www/framework.localhost/htdocs/bug.php on line 55 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60717&edit=1