|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-05 21:09 UTC] jani@php.net
[2009-02-06 10:35 UTC] john dot oconnor at totemic dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 18:00:01 2025 UTC |
Description: ------------ When calling a function in a static context, it appears that get_class reports its class incorrectly. Reproduce code: --------------- class Foo extends Bar { } class Bar { function test() { return get_class(new self); } } print "Should report 'Foo': " . Foo::test(); print "Should report 'Bar': " . Bar::test(); Expected result: ---------------- Should report 'Foo': Foo Should report 'Bar': Bar Actual result: -------------- Should report 'Foo': Bar Should report 'Bar': Bar