Bug #61052 [Opn]: missing error check in trait 'insteadof' clause
| From: | gron@php.net | Date: | Sun, 12 Feb 2012 11:40:01 +0000 |
| Subject: | Bug #61052 [Opn]: missing error check in trait 'insteadof' clause | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167445@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: Open
Type: Bug
Package: *Compile Issues
Operating System: Linux
PHP Version: 5.4.0RC7
-Assigned To:
+Assigned To: gron
Block user comment: N
Private report: N
New Comment:
Thanks for the report!.
Would classify this issue as non-critical.
So, I will look into it once 5.4.0 is out.
Previous Comments:
------------------------------------------------------------------------
[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