Changeset 485 for trunk/utils.c
- Timestamp:
- 2007-12-28T11:16:12+01:00 (5 years ago)
- File:
-
- 1 edited
-
trunk/utils.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r434 r485 20 20 21 21 #define OP_ZVAL_DTOR(op) do { \ 22 (op).u.constant.is_ref = 0; \22 Z_UNSET_ISREF((op).u.constant); \ 23 23 zval_dtor(&(op).u.constant); \ 24 24 } while(0) … … 152 152 case ZEND_JMPZ_EX: 153 153 case ZEND_JMPNZ_EX: 154 #ifdef ZEND_JMP_SET 155 case ZEND_JMP_SET: 156 #endif 154 157 opline->op2.u.opline_num = opline->op2.u.jmp_addr - op_array->opcodes; 155 158 assert(opline->op2.u.opline_num < op_array->last); … … 181 184 while (opline < end) { 182 185 if (opline->op1.op_type == IS_CONST) { 183 opline->op1.u.constant.is_ref = 1; 184 opline->op1.u.constant.refcount = 2; /* Make sure is_ref won't be reset */ 186 Z_SET_ISREF(opline->op1.u.constant); 187 Z_SET_REFCOUNT(opline->op1.u.constant, 2); /* Make sure is_ref won't be reset */ 188 185 189 } 186 190 if (opline->op2.op_type == IS_CONST) { 187 opline->op2.u.constant.is_ref = 1;188 opline->op2.u.constant.refcount = 2;191 Z_SET_ISREF(opline->op2.u.constant); 192 Z_SET_REFCOUNT(opline->op2.u.constant, 2); 189 193 } 190 194 #ifdef ZEND_ENGINE_2_1 … … 198 202 case ZEND_JMPZ_EX: 199 203 case ZEND_JMPNZ_EX: 204 #ifdef ZEND_JMP_SET 205 case ZEND_JMP_SET: 206 #endif 200 207 assert(opline->op2.u.opline_num < op_array->last); 201 208 opline->op2.u.jmp_addr = op_array->opcodes + opline->op2.u.opline_num; … … 299 306 case ZEND_JMPZ_EX: 300 307 case ZEND_JMPNZ_EX: 308 #ifdef ZEND_JMP_SET 309 case ZEND_JMP_SET: 310 #endif 301 311 next = begin + opline->op2.u.opline_num; 302 312 break;
Note: See TracChangeset
for help on using the changeset viewer.

