Bug #60173 [Opn->Asn]: Wrong message on trait instantiation
| From: | gron@php.net | Date: | Mon, 31 Oct 2011 22:28:08 +0000 |
| Subject: | Bug #60173 [Opn->Asn]: Wrong message on trait instantiation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164743@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60173&edit=1
ID: 60173
Updated by: gron@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