Bug #52465 [Bgs]: Some Thing Wrong With The debug_backtrace()
| From: | clark21330 at gmail dot com | Date: | Fri, 30 Jul 2010 11:51:47 +0000 |
| Subject: | Bug #52465 [Bgs]: Some Thing Wrong With The debug_backtrace() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152976@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52465&edit=1
ID: 52465
User updated by: clark21330 at gmail dot com
Reported by: clark21330 at gmail dot com
Summary: Some Thing Wrong With The debug_backtrace()
Status: Bogus
Type: Bug
Package: Scripting Engine problem
Operating System: Windows Vista
PHP Version: 5.3.3
Block user comment: N
New Comment:
I see... My Bad...
Previous Comments:
------------------------------------------------------------------------
[2010-07-28 14:13:59] johannes@php.net
This happens due to PHP 4 compatibility. You have to mark the method
static to get the correct result.
------------------------------------------------------------------------
[2010-07-28 05:33:55] clark21330 at gmail dot com
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
(
)
)
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52465&edit=1