php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61052 missing error check in trait 'insteadof' clause
Submitted: 2012-02-10 23:49 UTC Modified: 2012-03-04 19:34 UTC
From: ottoni at fb dot com Assigned: gron (profile)
Status: Closed Package: *Compile Issues
PHP Version: 5.4.0RC7 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ottoni at fb dot com
New email:
PHP Version: OS:

 

 [2012-02-10 23:49 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-12 11:40 UTC] gron@php.net
-Assigned To: +Assigned To: gron
 [2012-02-12 11:40 UTC] 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-03-04 19:34 UTC] gron@php.net
Automatic comment from SVN on behalf of gron
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=323898
Log: Fixed Bug #61052 (Missing error check in trait 'insteadof' clause)
 [2012-03-04 19:34 UTC] gron@php.net
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.


 [2012-03-04 19:34 UTC] gron@php.net
-Status: Assigned +Status: Closed
 [2012-04-18 09:45 UTC] laruence@php.net
Automatic comment on behalf of gron
Revision: http://git.php.net/?p=php-src.git;a=commit;h=520d07d86a7520c970e18480ed0237c6253bd097
Log: Fixed Bug #61052 (Missing error check in trait 'insteadof' clause)
 [2012-07-24 23:36 UTC] rasmus@php.net
Automatic comment on behalf of gron
Revision: http://git.php.net/?p=php-src.git;a=commit;h=520d07d86a7520c970e18480ed0237c6253bd097
Log: Fixed Bug #61052 (Missing error check in trait 'insteadof' clause)
 [2013-11-17 09:33 UTC] laruence@php.net
Automatic comment on behalf of gron
Revision: http://git.php.net/?p=php-src.git;a=commit;h=520d07d86a7520c970e18480ed0237c6253bd097
Log: Fixed Bug #61052 (Missing error check in trait 'insteadof' clause)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC