View | Details | Raw Unified | Return to bug 6348
Collapse All | Expand All

(-)php-4.3.10.orig/ext/bcmath/bcmath.c (-1 / +1 lines)
Lines 301-307 PHP_FUNCTION(bcdiv) Link Here
301
			Z_TYPE_P(return_value) = IS_STRING;
301
			Z_TYPE_P(return_value) = IS_STRING;
302
			break;
302
			break;
303
		case -1: /* division by zero */
303
		case -1: /* division by zero */
304
			php_error_docref(NULL TSRMLS_CC, E_WARNING, "Division by zero");
304
			php_error_docref(NULL TSRMLS_CC, E_ERROR, "Division by zero");
305
			break;
305
			break;
306
	}
306
	}
307
	bc_free_num(&first);
307
	bc_free_num(&first);
(-)php-4.3.10.orig/Zend/zend_operators.c (-1 / +1 lines)
Lines 749-755 ZEND_API int div_function(zval *result, Link Here
749
	zendi_convert_scalar_to_number(op2, op2_copy, result);
749
	zendi_convert_scalar_to_number(op2, op2_copy, result);
750
750
751
	if ((op2->type == IS_LONG && op2->value.lval == 0) || (op2->type == IS_DOUBLE && op2->value.dval == 0.0)) {
751
	if ((op2->type == IS_LONG && op2->value.lval == 0) || (op2->type == IS_DOUBLE && op2->value.dval == 0.0)) {
752
		zend_error(E_WARNING, "Division by zero");
752
		zend_error(E_ERROR, "Division by zero");
753
		ZVAL_BOOL(result, 0);
753
		ZVAL_BOOL(result, 0);
754
		return FAILURE;			/* division by zero */
754
		return FAILURE;			/* division by zero */
755
	}
755
	}

Return to bug 6348