Bug #60173 [Asn->Csd]: Wrong message on trait instantiation
| From: | gron@php.net | Date: | Mon, 31 Oct 2011 22:59:49 +0000 |
| Subject: | Bug #60173 [Asn->Csd]: Wrong message on trait instantiation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164747@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: 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] gron@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