diff options
| author | Andi Gutmans <andi@php.net> | 2002-05-08 18:43:19 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2002-05-08 18:43:19 +0000 |
| commit | 14a81f91e3228a46420302a20670bf16419a2c6a (patch) | |
| tree | c1a711fa39039cce85b177426773d030775af431 /Zend/zend_builtin_functions.c | |
| parent | cfb285a391d946e981fb4205bfe1b97f6fba6fe0 (diff) | |
| download | php-git-14a81f91e3228a46420302a20670bf16419a2c6a.tar.gz | |
- Hopefully fix problems with debug_backtrace()
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 23fce3ce43..15cfee45c8 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1203,9 +1203,12 @@ ZEND_FUNCTION(debug_backtrace) if (ptr->object) { printf("%s::", Z_OBJCE(*ptr->object)->name); } + if (ptr->function_state.function->common.scope) { + printf("%s::", ptr->function_state.function->common.scope->name); + } function_name = ptr->function_state.function->common.function_name; if (!function_name) { - function_name = "main"; + function_name = "_main_"; } ptr = ptr->prev_execute_data; |
