@@ -2194,7 +2194,6 @@ ZEND_FUNCTION(debug_print_backtrace)
2194
2194
ZEND_API void zend_fetch_debug_backtrace (zval * return_value , int skip_last , int options , int limit TSRMLS_DC )
2195
2195
{
2196
2196
zend_execute_data * ptr , * skip ;
2197
- zend_function * fbc ;
2198
2197
int lineno , frameno = 0 ;
2199
2198
const char * function_name ;
2200
2199
const char * filename ;
@@ -2261,15 +2260,14 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
2261
2260
filename = NULL ;
2262
2261
}
2263
2262
2264
- fbc = ptr -> function_state .function ;
2265
- function_name = fbc -> common .function_name ;
2263
+ function_name = ptr -> function_state .function -> common .function_name ;
2266
2264
2267
2265
if (function_name ) {
2268
2266
add_assoc_string_ex (stack_frame , "function" , sizeof ("function" ), (char * )function_name , 1 );
2269
2267
2270
2268
if (ptr -> object && Z_TYPE_P (ptr -> object ) == IS_OBJECT ) {
2271
- if (fbc -> common .scope ) {
2272
- add_assoc_string_ex (stack_frame , "class" , sizeof ("class" ), (char * ) fbc -> common .scope -> name , 1 );
2269
+ if (ptr -> function_state . function -> common .scope ) {
2270
+ add_assoc_string_ex (stack_frame , "class" , sizeof ("class" ), (char * )ptr -> function_state . function -> common .scope -> name , 1 );
2273
2271
} else {
2274
2272
zend_uint class_name_len ;
2275
2273
int dup ;
@@ -2284,8 +2282,8 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
2284
2282
}
2285
2283
2286
2284
add_assoc_string_ex (stack_frame , "type" , sizeof ("type" ), "->" , 1 );
2287
- } else if (fbc -> common .scope ) {
2288
- add_assoc_string_ex (stack_frame , "class" , sizeof ("class" ), (char * )fbc -> common .scope -> name , 1 );
2285
+ } else if (ptr -> function_state . function -> common .scope ) {
2286
+ add_assoc_string_ex (stack_frame , "class" , sizeof ("class" ), (char * )ptr -> function_state . function -> common .scope -> name , 1 );
2289
2287
add_assoc_string_ex (stack_frame , "type" , sizeof ("type" ), "::" , 1 );
2290
2288
}
2291
2289
0 commit comments