|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-10 14:00 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 14:00:01 2025 UTC |
Description: ------------ The "class" parameter should be "B" instead of "A", as I called B::r() and not A::r(). Reproduce code: --------------- <?php abstract class A { public static function r() { var_dump(debug_backtrace()); } } class B extends A { } echo B::r(); ?> Expected result: ---------------- array(1) { [0]=> array(6) { ["file"]=> string(13) "/www/test.php" ["line"]=> int(12) ["function"]=> string(1) "r" ["class"]=> string(1) "B" /* Not A */ ["type"]=> string(2) "::" ["args"]=> array(0) { } } } Actual result: -------------- array(1) { [0]=> array(6) { ["file"]=> string(13) "/www/test.php" ["line"]=> int(12) ["function"]=> string(1) "r" ["class"]=> string(1) "A" ["type"]=> string(2) "::" ["args"]=> array(0) { } } }