diff options
author | Zeev Suraski <zeev@php.net> | 2004-04-13 16:07:19 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2004-04-13 16:07:19 +0000 |
commit | 2310acb57a324c8dc1dafcd6240cea45fdcaf6bd (patch) | |
tree | f5ea43c41584fe27b6115f2de3858ec2b44b9822 | |
parent | 4f47f334025cb5ced76c526904491a585f7d0127 (diff) | |
download | php-git-2310acb57a324c8dc1dafcd6240cea45fdcaf6bd.tar.gz |
Fix debug_backtrace to show arguments again
We need to merge code from debug_backtrace & debug_print_backtrace at
some point!
-rw-r--r-- | Zend/zend_builtin_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 67ad7038ed..60afdac722 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1454,7 +1454,7 @@ ZEND_FUNCTION(debug_print_backtrace) args -= *(ulong*)args; frames_on_stack++; - if (args == EG(argument_stack).elements) { + if ((args-1) == EG(argument_stack).elements) { arg_stack_consistent = 1; break; } @@ -1574,7 +1574,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRML args -= *(ulong*)args; frames_on_stack++; - if (args == EG(argument_stack).elements) { + if ((args-1) == EG(argument_stack).elements) { arg_stack_consistent = 1; break; } |