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:

And there is another question~



How can my script executed currently on both PHP4 and 5


Previous Comments:
------------------------------------------------------------------------
[2010-07-30 13:51:46] clark21330 at gmail dot com

I see... My Bad...

------------------------------------------------------------------------
[2010-07-28 14:13:59] johan...@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

Reply via email to