|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-09 17:15 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 20:00:01 2025 UTC |
Description: ------------ $this should not be defined in the context of a static function call. Reproduce code: --------------- class A { function func() { echo get_class($this); } } class B { function x() { A::func(); } } $b = new B(); $b->x(); Expected result: ---------------- .. nothing .. (object not present/instantiated/defined) Actual result: -------------- b