break;
}
STR_FREE(strval);
- } else if (op->type == IS_BOOL) {
- op->type = IS_LONG;
- } else if (op->type==IS_RESOURCE) {
- zend_list_delete(op->value.lval);
+ } else if (op->type==IS_BOOL || op->type==IS_RESOURCE) {
op->type = IS_LONG;
}
}
break; \
} \
(op) = &(holder); \
- } else if ((op)->type==IS_BOOL) { \
- (holder) = *(op); \
- (holder).type = IS_LONG; \
- (op) = &(holder); \
- } else if ((op)->type==IS_RESOURCE) { \
+ } else if ((op)->type==IS_BOOL || (op)->type==IS_RESOURCE) { \
(holder) = *(op); \
- zend_list_delete((holder).value.lval); \
(holder).type = IS_LONG; \
(op) = &(holder); \
}
} else if ((op)->type != IS_LONG) { \
switch ((op)->type) { \
case IS_RESOURCE: \
- zend_list_delete((op)->value.lval); \
- /* break missing intentionally */ \
case IS_BOOL: \
break; \
case IS_DOUBLE: \
} else if ((op)->type != IS_BOOL) { \
switch ((op)->type) { \
case IS_RESOURCE: \
- zend_list_delete((op)->value.lval); \
- /* break missing intentionally */ \
case IS_LONG: \
(holder).value.lval = ((op)->value.lval ? 1 : 0); \
break; \
switch (op->type) {
case IS_RESOURCE:
- zend_list_delete(op->value.lval);
- /* break missing intentionally */
case IS_BOOL:
case IS_LONG:
break;
switch (op->type) {
case IS_RESOURCE:
- zend_list_delete(op->value.lval);
- /* break missing intentionally */
case IS_BOOL:
case IS_LONG:
op->value.dval = (double) op->value.lval;
case IS_BOOL:
break;
case IS_RESOURCE:
- zend_list_delete(op->value.lval);
- /* break missing intentionally */
case IS_LONG:
op->value.lval = (op->value.lval ? 1 : 0);
break;