#include "php_bcmath.h"
#include "libbcmath/src/bcmath.h"
-ZEND_DECLARE_MODULE_GLOBALS(bcmath);
+ZEND_DECLARE_MODULE_GLOBALS(bcmath)
static PHP_GINIT_FUNCTION(bcmath);
static PHP_GSHUTDOWN_FUNCTION(bcmath);
}
/* }}} */
-
/* {{{ proto string bcadd(string left_operand, string right_operand [, int scale]) U
Returns the sum of two arbitrary precision numbers */
PHP_FUNCTION(bcadd)
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
scale = 0;
}
return;
}
- if (scale < 0) {
+ if ((int)scale < 0) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid scale given, using zero");
- scale = 0;
+ RETURN_FALSE;
}
BCG(bc_precision) = scale;