Changeset 1481 in svn for trunk/processor/head.m4


Ignore:
Timestamp:
2014-02-26T04:04:47Z (19 months ago)
Author:
Xuefer
Message:

more asserts for class index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r1473 r1481  
    255255            processor->cache_ce = ceptr;
    256256            processor->cache_class_index = i;
     257            assert(i <= processor->active_class_index);
    257258            return i + 1;
    258259        }
     
    266267static zend_class_entry *xc_get_class(xc_processor_t *processor, zend_ulong class_num) { /* {{{ */
    267268    /* must be parent or currrent class */
     269    assert(class_num > 0);
    268270    assert(class_num <= processor->active_class_index + 1);
    269271    return CestToCePtr(processor->php_dst->classinfos[class_num - 1].cest);
Note: See TracChangeset for help on using the changeset viewer.