Edit report at https://bugs.php.net/bug.php?id=61052&edit=1
ID: 61052 Updated by: g...@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