|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2013-01-25 11:26 UTC] denny dot reeh at gmail dot com
[2013-02-01 11:41 UTC] source dot spider at gmail dot com
[2013-02-11 01:42 UTC] manchokapitancho at gmail dot com
[2013-02-12 12:55 UTC] maciej dot sz at gmail dot com
[2013-02-17 10:53 UTC] inefedor at gmail dot com
[2013-02-17 10:54 UTC] denny dot reeh at gmail dot com
[2013-02-17 11:11 UTC] inefedor at gmail dot com
[2013-02-17 12:05 UTC] denny dot reeh at gmail dot com
[2013-02-18 10:40 UTC] laruence@php.net
-Assigned To:
+Assigned To: dmitry
[2013-02-18 10:41 UTC] inefedor at gmail dot com
[2013-02-18 12:36 UTC] dmitry@php.net
-Status: Assigned
+Status: Closed
[2013-02-18 12:36 UTC] dmitry@php.net
[2013-02-18 12:37 UTC] dmitry@php.net
[2013-02-21 22:16 UTC] alexander at mailinator dot net
[2013-02-22 08:28 UTC] dmitry@php.net
[2013-02-26 10:25 UTC] alexander at mailinator dot net
[2014-10-07 23:20 UTC] stas@php.net
[2014-10-07 23:31 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
Description: ------------ if two traits have the same function name and a trait uses another trait and using the as operator for aliases the function, it failed with fatal error. Test script: --------------- <?php trait first_trait { function first_function() { echo "From First Trait\n"; } } trait second_trait { use first_trait { first_trait::first_function as second_function; } function first_function() { echo "From Second Trait\n"; } } class first_class { use second_trait; } $obj = new first_class(); $obj->first_function(); $obj->second_function(); Expected result: ---------------- From Second Trait From First Trait Actual result: -------------- PHP Fatal error: Trait method first_function has not been applied, because there are collisions with other trait methods on first_class in test.php on line 25 PHP Stack trace: PHP 1. {main}() /data/www/helix/test.php:0