Bug #61052 [Asn->Csd]: missing error check in trait 'insteadof' clause
| From: | gron@php.net | Date: | Sun, 04 Mar 2012 19:34:55 +0000 |
| Subject: | Bug #61052 [Asn->Csd]: missing error check in trait 'insteadof' clause | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168107@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61052&edit=1
ID: 61052
Updated by: gron@php.net
Reported by: ottoni at fb dot com
Summary: missing error check in trait 'insteadof' clause
-Status: Assigned
+Status: Closed
Type: Bug
Package: *Compile Issues
Operating System: Linux
PHP Version: 5.4.0RC7
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.
Previous Comments:
------------------------------------------------------------------------
[2012-03-04 19:34:12] gron@php.net
Automatic comment from SVN on behalf of gron
Revision: http://svn.php.net/viewvc/?view=revision&revision=323898
Log: Fixed Bug #61052 (Missing error check in trait 'insteadof' clause)
------------------------------------------------------------------------
[2012-02-12 11:40:01] gron@php.net
Thanks for the report!.
Would classify this issue as non-critical.
So, I will look into it once 5.4.0 is out.
------------------------------------------------------------------------
[2012-02-10 23:49:43] ottoni at fb dot com
Description:
------------
See example script.
Test script:
---------------
<?php
trait T1 {
function foo(){ echo "T1\n"; }
}
trait T2 {
function foo(){ echo "T2\n"; }
}
class C {
use T1, T2 {
T1::foo insteadof T1;
}
}
C::foo();
Expected result:
----------------
Fatal complaining about inconsistency in statement:
T1::foo insteadof T1;
Actual result:
--------------
T2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61052&edit=1