Bug #65419 [Csd->Fbk]: Inside trait, self::class != __CLASS__

From: Date: Fri, 28 Nov 2014 13:22:28 +0000
Subject: Bug #65419 [Csd->Fbk]: Inside trait, self::class != __CLASS__
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188835@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65419&edit=1 ID: 65419 Updated by: jpauli@php.net Reported by: nicolas dot grekas+php at gmail dot com Summary: Inside trait, self::class != __CLASS__ -Status: Closed +Status: Feedback Type: Bug Package: Scripting Engine problem PHP Version: 5.5.1 Assigned To: ralphschindler Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php5.5-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2014-11-28 12:39:44] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=7c77ca38b1e3ea7a707380c731b237c2c480e093 Log: Fix #65419 - Inside trait, self::class != __CLASS__ ------------------------------------------------------------------------ [2014-11-28 12:39:18] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=7c77ca38b1e3ea7a707380c731b237c2c480e093 Log: Fix #65419 - Inside trait, self::class != __CLASS__ ------------------------------------------------------------------------ [2014-11-28 12:38:42] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=7c77ca38b1e3ea7a707380c731b237c2c480e093 Log: Fix #65419 - Inside trait, self::class != __CLASS__ ------------------------------------------------------------------------ [2014-10-29 13:40:18] jpauli@php.net Got a patch at https://github.com/jpauli/php-src/compare/65419 I basically add a runtime resolve for self:: into Traits, making it behaves like __CLASS__ ------------------------------------------------------------------------ [2014-02-18 08:34:13] nicolas dot grekas+php at gmail dot com It would be nice if this could be resolved for 5.6. I fear people could start relying on this buggy behavior... ------------------------------------------------------------------------ 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=65419 -- Edit this bug report at https://bugs.php.net/bug.php?id=65419&edit=1

« previous php.bugs (#188835) next »