|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-28 14:13 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-07-28 14:13 UTC] johannes@php.net
[2010-07-30 13:51 UTC] clark21330 at gmail dot com
[2010-07-30 14:05 UTC] clark21330 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 19:00:01 2025 UTC |
Description: ------------ Did you see the Output of the script? but why the type of "method a" was "->" it must be "::"! because I use it with the static method... maybe it isn't a bug but it's really a big problem to me AND. I'm poor at English~~~... Please forgive me~ Test script: --------------- class R{ function a(){ print_r(debug_backtrace()); } } class X{ function b(){ R::a(); } } $A = new X; echo $A->b(); Expected result: ---------------- Array ( [0] => Array ( [file] => G:\Site\Test2\1.php [line] => 11 [function] => a [class] => R [object] => X Object ( ) [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => G:\Site\Test2\1.php [line] => 15 [function] => b [class] => X [object] => X Object ( ) [type] => -> [args] => Array ( ) ) )