|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-11-29 09:20 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2013-11-29 09:20 UTC] nikic@php.net
[2013-11-29 12:44 UTC] gulturyan at gmail dot com
[2013-11-29 14:14 UTC] bwoebi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 19:00:01 2025 UTC |
Description: ------------ in version 5.4.22 not working static::$this in version 5.4.21 still work. Test script: --------------- class A { public function aa() { return get_class(static::$this); } } class A2 extends A { } $a = new A2(); die(var_dump($a->aa())); Expected result: ---------------- A2 Actual result: -------------- Fatal error: Access to undeclared static property: A2::$this