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: Assigned +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 5.4SVN-2011-10-29 (snap) Assigned To: gron Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Fixed with SVN rev. 318621. Previous Comments: ------------------------------------------------------------------------ [2011-10-31 22:58:56] g...@php.net Automatic comment from SVN on behalf of gron Revision: http://svn.php.net/viewvc/?view=revision&revision=318621 Log: Fixed Bug #60173 (Wrong error message on reflective trait instantiation) ------------------------------------------------------------------------ [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