Skip to content

Commit

Permalink
Fixed for 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Aug 12, 2016
1 parent 9d8de93 commit 3198434
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion views/yaf_view_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ static int yaf_view_exec_tpl(yaf_view_t *view, zend_op_array *op_array, zend_arr

op_array->scope = Z_OBJCE_P(view);

call = zend_vm_stack_push_call_frame(ZEND_CALL_NESTED_CODE,
call = zend_vm_stack_push_call_frame(ZEND_CALL_NESTED_CODE
#if PHP_VERSION_ID >= 70100
| ZEND_CALL_HAS_SYMBOL_TABLE
#endif
,
(zend_function*)op_array, 0, op_array->scope, Z_OBJ_P(view));

call->symbol_table = symbol_table;
Expand All @@ -187,6 +191,7 @@ static int yaf_view_exec_tpl(yaf_view_t *view, zend_op_array *op_array, zend_arr
zend_vm_stack_free_call_frame(call);

zval_ptr_dtor(&result);

if (UNEXPECTED(EG(exception) != NULL)) {
if (ret) {
php_output_discard();
Expand Down

0 comments on commit 3198434

Please sign in to comment.