Skip to content

Commit

Permalink
Fix zend_get_zval_ptr()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jun 28, 2017
1 parent 79128b3 commit 4465b37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Zend/zend_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -3077,16 +3077,20 @@ ZEND_API zval *zend_get_zval_ptr(int op_type, const znode_op *node, const zend_e
case IS_CONST:
ret = EX_CONSTANT(*node);
*should_free = NULL;
break;
case IS_TMP_VAR:
case IS_VAR:
ret = EX_VAR(node->var);
*should_free = ret;
break;
case IS_CV:
ret = EX_VAR(node->var);
*should_free = NULL;
break;
default:
ret = NULL;
*should_free = ret;
break;
}
return ret;
}
Expand Down

0 comments on commit 4465b37

Please sign in to comment.