summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2005-11-24 05:07:28 +0000
committerSebastian Bergmann <sebastian@php.net>2005-11-24 05:07:28 +0000
commitf5117c81b39059c83bed8cb387ad9b7a77efe4c4 (patch)
tree3234d73b6222ef1ed00090dc5379b720e3e54dfa /Zend/zend_exceptions.c
parenta420b562df557068713a179f40d994f897e3fe4f (diff)
downloadphp-git-f5117c81b39059c83bed8cb387ad9b7a77efe4c4.tar.gz
MFH: Add an additional field $frame['object'] to the result array of debug_backtrace() that contains a reference to the respective object when the frame was called from an object.
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 222240df61..a6d2a5a147 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -92,7 +92,7 @@ static zend_object_value zend_default_exception_new_ex(zend_class_entry *class_t
ALLOC_ZVAL(trace);
trace->is_ref = 0;
trace->refcount = 0;
- zend_fetch_debug_backtrace(trace, skip_top_traces TSRMLS_CC);
+ zend_fetch_debug_backtrace(trace, skip_top_traces, 0 TSRMLS_CC);
zend_update_property_string(default_exception_ce, &obj, "file", sizeof("file")-1, zend_get_executed_filename(TSRMLS_C) TSRMLS_CC);
zend_update_property_long(default_exception_ce, &obj, "line", sizeof("line")-1, zend_get_executed_lineno(TSRMLS_C) TSRMLS_CC);