Edit report at https://bugs.php.net/bug.php?id=60173&edit=1
ID: 60173 Updated by: g...@php.net Reported by: php-bugs at majkl578 dot cz Summary: Wrong message on trait instantiation -Status: Open +Status: Assigned Type: Bug Package: Scripting Engine problem PHP Version: 5.4SVN-2011-10-29 (snap) -Assigned To: +Assigned To: gron Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-10-30 00:06:22] php-bugs at majkl578 dot cz Description: ------------ Wrong error message when trait is being instanciated using reflection or being unserialized by unserialize(). Test script: --------------- trait Test {} $rc = new ReflectionClass('Test'); $rc->newInstance(); Expected result: ---------------- Fatal error: Cannot instantiate trait Test in %s on line %d Actual result: -------------- Fatal error: Cannot instantiate abstract class Test in %s on line %d ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60173&edit=1