Changeset 845 in svn for trunk/optimizer.c


Ignore:
Timestamp:
2012-03-25T18:32:20+02:00 (3 years ago)
Author:
Xuefer
Message:

do not opt out brk_cont_array in any case as it is required by ZEND_HANDLE_EXCEPTION

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimizer.c

    r834 r845  
    5757{
    5858    int i;
    59     zend_bool preserve_brk_cont_array = 0;
    6059
    6160    if (op_array->brk_cont_array == NULL) {
     
    7675#ifdef ZEND_GOTO
    7776        case ZEND_GOTO:
    78             preserve_brk_cont_array = 1;
     77#endif
    7978            continue;
    80 #endif
    8179
    8280        default:
     
    109107                    if (!(brk_opline->extended_value & EXT_TYPE_FREE_ON_RETURN)) {
    110108                        can_convert = 0;
    111                         preserve_brk_cont_array = 1;
    112109                    }
    113110                    break;
     
    133130    }
    134131
    135     if (!preserve_brk_cont_array) {
    136         if (op_array->brk_cont_array != NULL) {
    137             efree(op_array->brk_cont_array);
    138             op_array->brk_cont_array = NULL;
    139         }
    140         op_array->last_brk_cont = 0;
    141     }
    142132    return SUCCESS;
    143133}
Note: See TracChangeset for help on using the changeset viewer.