diff options
author | Sebastian Bergmann <sebastian@php.net> | 2005-11-01 13:18:34 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2005-11-01 13:18:34 +0000 |
commit | 5d671dd4b26c3c13b78807a50abf5fe4482888ae (patch) | |
tree | adb3fd446043a9338d8c7b39fe26f3d6cef7cd66 /Zend/zend_exceptions.c | |
parent | 78456eb9a27a6fd832d0b3f764fc1d7f625917b5 (diff) | |
download | php-git-5d671dd4b26c3c13b78807a50abf5fe4482888ae.tar.gz |
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. This revised patch has been reviewed by Dmitry and Zeev.
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 2659687db9..1c7a32761e 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_rt_string(U_CLASS_ENTRY(default_exception_ce), &obj, "file", sizeof("file")-1, zend_get_executed_filename(TSRMLS_C) TSRMLS_CC); zend_update_property_long(U_CLASS_ENTRY(default_exception_ce), &obj, "line", sizeof("line")-1, zend_get_executed_lineno(TSRMLS_C) TSRMLS_CC); |