|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-17 21:27 UTC] updates at mail dot ru
[2010-12-17 23:55 UTC] cataphract@php.net
-Status: Open
+Status: Bogus
[2010-12-17 23:55 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 12:00:01 2025 UTC |
Description: ------------ Bug in get_called_class() Test script: --------------- class a { function __construct() { $a = get_class($this); a::test(); } function test() { var_dump(get_called_class()); } } class b extends a { } $a = new a(); $b = new b(); Expected result: ---------------- string(1) "a" string(1) "a" Actual result: -------------- string(1) "a" string(1) "b"