Test: /Zend/tests/traits/bug55214.phpt - Version 7.0.25-dev        

Bug #55214 use of __CLASS__ within trait returns trait name not class name
Submitted: 2011-07-15 06:30:34 Modified: 2011-10-17 22:12:04
From: chris.rutledge Assigned: gron
Status: Closed Package: Scripting Engine problem
PHP Version: 5.4.0alpha1 OS: Ubuntu

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
002+
003+ Fatal error: Uncaught Error: Undefined constant '__CLASS__' in %s/bug55214.php:16
004+ Stack trace:
005+ #0 %s/bug55214.php(38): SomeClass::get_class_name2()
006+ #1 {main}
007+ thrown in %s/bug55214.php on line 16
002- string(9) "SomeClass"
003- string(9) "SomeClass"
004- string(9) "SomeClass"
005- string(13) "UsingIndirect"
006- string(13) "UsingIndirect"
007- string(13) "UsingIndirect"
008- string(13) "UsingIndirect"