Show
Ignore:
Timestamp:
10/13/05 21:32:55 (3 years ago)
Author:
zoeloelip
Message:

Fixed php5 optimizer bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/optimize.c

    r123 r128  
    17001700        op->result.op_type == IS_TMP_VAR) { 
    17011701      zend_constant *c = NULL; 
    1702       if (opt_get_constant(op->op1.u.constant.value.str.val, op->op1.u.constant.value.str.len, &c TSRMLS_CC) && c != NULL && ((c->flags & CONST_PERSISTENT) != 0)) { 
     1702      if (op->op1.u.constant.value.str.val != NULL && 
     1703          opt_get_constant(op->op1.u.constant.value.str.val, op->op1.u.constant.value.str.len, &c TSRMLS_CC)  
     1704          && c != NULL && ((c->flags & CONST_PERSISTENT) != 0)) { 
    17031705        STR_FREE(op->op1.u.constant.value.str.val); 
    17041706        memcpy(&op->op1.u.constant, &c->value, sizeof(zval));