Skip to content

Commit 9052982

Browse files
committed
Revert some more now unnecessary changes
1 parent 020737f commit 9052982

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

Zend/zend_builtin_functions.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,6 @@ ZEND_FUNCTION(debug_print_backtrace)
21942194
ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int options, int limit TSRMLS_DC)
21952195
{
21962196
zend_execute_data *ptr, *skip;
2197-
zend_function *fbc;
21982197
int lineno, frameno = 0;
21992198
const char *function_name;
22002199
const char *filename;
@@ -2261,15 +2260,14 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
22612260
filename = NULL;
22622261
}
22632262

2264-
fbc = ptr->function_state.function;
2265-
function_name = fbc->common.function_name;
2263+
function_name = ptr->function_state.function->common.function_name;
22662264

22672265
if (function_name) {
22682266
add_assoc_string_ex(stack_frame, "function", sizeof("function"), (char*)function_name, 1);
22692267

22702268
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);
22732271
} else {
22742272
zend_uint class_name_len;
22752273
int dup;
@@ -2284,8 +2282,8 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
22842282
}
22852283

22862284
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);
22892287
add_assoc_string_ex(stack_frame, "type", sizeof("type"), "::", 1);
22902288
}
22912289

Zend/zend_opcode.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,6 @@ ZEND_API int pass_two(zend_op_array *op_array TSRMLS_DC)
651651
{
652652
zend_op *opline, *end;
653653

654-
if( (op_array->fn_flags & ZEND_ACC_DONE_PASS_TWO) ) {
655-
return 0;
656-
}
657654
if (op_array->type != ZEND_USER_FUNCTION && op_array->type != ZEND_EVAL_CODE) {
658655
return 0;
659656
}

0 commit comments

Comments
 (0)