From:
Operating system: Windows Vista
PHP version: 5.3.3
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Some Thing Wrong With The debug_backtrace()
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 bug report at http://bugs.php.net/bug.php?id=52465&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52465&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52465&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=52465&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52465&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=52465&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52465&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=52465&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=52465&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=52465&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=52465&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=52465&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=52465&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=52465&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52465&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52465&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52465&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=52465&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=52465&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=52465&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=52465&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=52465&r=mysqlcfg