From 8250b9f3b04206bd050f4b807adb1cf021db10e4 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 10 May 2007 09:53:28 +0000 Subject: [PATCH] bcmath.scale must be greater or equal to zero looks like negative value cannot cause any problems, but it's still invalid --- ext/bcmath/bcmath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() /* }}} */ -- 2.50.1