From:             
Operating system: Linux
PHP version:      5.4.0RC7
Package:          *Compile Issues
Bug Type:         Bug
Bug description:missing error check in trait 'insteadof' clause

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 bug report at https://bugs.php.net/bug.php?id=61052&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61052&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61052&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61052&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61052&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61052&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61052&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61052&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61052&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61052&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61052&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61052&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61052&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61052&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61052&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61052&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61052&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61052&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61052&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61052&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61052&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61052&r=mysqlcfg

Reply via email to