From: Antony Dovgal Date: Thu, 10 May 2007 09:53:28 +0000 (+0000) Subject: bcmath.scale must be greater or equal to zero X-Git-Tag: RELEASE_1_2_0~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8250b9f3b04206bd050f4b807adb1cf021db10e4;p=php bcmath.scale must be greater or equal to zero looks like negative value cannot cause any problems, but it's still invalid --- diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c index 3ef88764db..c4096f25ff 100644 --- a/ext/bcmath/bcmath.c +++ b/ext/bcmath/bcmath.c @@ -142,7 +142,7 @@ ZEND_GET_MODULE(bcmath) /* {{{ PHP_INI */ PHP_INI_BEGIN() - STD_PHP_INI_ENTRY("bcmath.scale", "0", PHP_INI_ALL, OnUpdateLong, bc_precision, zend_bcmath_globals, bcmath_globals) + STD_PHP_INI_ENTRY("bcmath.scale", "0", PHP_INI_ALL, OnUpdateLongGEZero, bc_precision, zend_bcmath_globals, bcmath_globals) PHP_INI_END() /* }}} */