Z_TYPE_P(return_value) = IS_STRING;
break;
case -1: /* division by zero */
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Division by zero");
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Division by zero");
}
bc_free_num(&first);
zendi_convert_scalar_to_number(op2, op2_copy, result);
if ((op2->type == IS_LONG && op2->value.lval == 0) || (op2->type == IS_DOUBLE && op2->value.dval == 0.0)) {
zend_error(E_WARNING, "Division by zero");
zend_error(E_ERROR, "Division by zero");
ZVAL_BOOL(result, 0);
return FAILURE; /* division by zero */