Changeset 716 in svn for trunk/coverager.c


Ignore:
Timestamp:
2011-04-09T07:07:48Z (4 years ago)
Author:
Xuefer
Message:

PHP 6: initial catch up with php 6 literals and trait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager.c

    r554 r716  
    379379static int xc_coverager_get_op_array_size_no_tail(zend_op_array *op_array) /* {{{ */
    380380{
    381     zend_uint size;
    382 
    383     size = op_array->size;
     381    zend_uint last = op_array->last;
    384382    do {
    385383next_op:
    386         if (size == 0) {
     384        if (last == 0) {
    387385            break;
    388386        }
    389         switch (op_array->opcodes[size - 1].opcode) {
     387        switch (op_array->opcodes[last - 1].opcode) {
    390388#ifdef ZEND_HANDLE_EXCEPTION
    391389            case ZEND_HANDLE_EXCEPTION:
     
    393391            case ZEND_RETURN:
    394392            case ZEND_EXT_STMT:
    395                 size --;
     393                --last;
    396394                goto next_op;
    397395        }
    398396    } while (0);
    399     return size;
     397    return last;
    400398}
    401399/* }}} */
Note: See TracChangeset for help on using the changeset viewer.