Edit report at https://bugs.php.net/bug.php?id=64235&edit=1
ID: 64235
Comment by: maciej dot sz at gmail dot com
Reported by: imenem at inox dot ru
Summary: Insteadof not work for class method in 5.4.11
Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: Debian GNU/Linux
PHP Version: 5.4.11
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Is there going to be a follow up discussion regarding the necessity of repeating methods in case
traits and classes collide?
Stefan mentioned: "I understand that this is not ideal, and requires you to repeat
yourself", but I don't think that this statement grasps the magnitude of the problem. You
bring up only simplest cases here - methods with no parameters. But in reality we, PHP users, write
methods with fair amount of parameters and a lot of docblock text. Should we repeat it all? Traits
are meant to decrease repetition, right?
Previous Comments:
------------------------------------------------------------------------
[2013-02-21 10:21:28] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9a44a9806c7c7a8c1fc691210335d0691a4597be
Log: Fixed bug #64235 (Insteadof not work for class method in 5.4.11)
------------------------------------------------------------------------
[2013-02-21 10:21:00] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9a44a9806c7c7a8c1fc691210335d0691a4597be
Log: Fixed bug #64235 (Insteadof not work for class method in 5.4.11)
------------------------------------------------------------------------
[2013-02-21 10:20:25] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9a44a9806c7c7a8c1fc691210335d0691a4597be
Log: Fixed bug #64235 (Insteadof not work for class method in 5.4.11)
------------------------------------------------------------------------
[2013-02-21 09:12:08] dmitry@php.net
Personally, I agree with deny_use_with_classes.patch
------------------------------------------------------------------------
[2013-02-21 09:09:56] laruence@php.net
The following patch has been added/updated:
Patch Name: deny_use_with_classes.patch
Revision: 1361437796
URL: https://bugs.php.net/patch-display.php?bug=64235&patch=deny_use_with_classes.patch&revision=1361437796
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64235--
Edit this bug report at https://bugs.php.net/bug.php?id=64235&edit=1