debug_backtrace() returns information only about last call #15
正在加载...
在新工单中引用
屏蔽一个用户
没有提供说明。
删除分支 %!s()
删除分支是永久的。虽然已删除的分支在实际被删除前有可能会短时间存在,但这在大多数情况下无法撤销。是否继续?
删除分支是永久的。虽然已删除的分支在实际被删除前有可能会短时间存在,但这在大多数情况下无法撤销。是否继续?
Aer Information
4c81475afb
Your problem description
debug_backtrace() does not return information all information as in PHP. See example code:
Expected result (from PHP):
array(2) {
[0] =>
array(4) {
'file' =>
string(8) "test.php"
'line' =>
int(8)
'function' =>
string(4) "test"
'args' =>
array(0) {
}
}
[1] =>
array(4) {
'file' =>
string(8) "test.php"
'line' =>
int(11)
'function' =>
string(1) "a"
'args' =>
array(0) {
}
}
}
Current results
It is possible to retrieve all functions
test
anda
but the VM holds only a bytecode sequence at a time, the last used, thus it will returns 11 in this case for both.