Bug #60717 [Opn->Asn]: Order of traits in use statement can cause a fatal error

From: Date: Sun, 22 Jan 2012 19:53:17 +0000
Subject: Bug #60717 [Opn->Asn]: Order of traits in use statement can cause a fatal error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166700@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60717&edit=1 ID: 60717 Updated by: rasmus@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

« previous php.bugs (#166700) next »