]> granicus.if.org Git - php/commitdiff
bcmath.scale must be greater or equal to zero
authorAntony Dovgal <tony2001@php.net>
Thu, 10 May 2007 09:53:28 +0000 (09:53 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 10 May 2007 09:53:28 +0000 (09:53 +0000)
looks like negative value cannot cause any problems, but it's still invalid

ext/bcmath/bcmath.c

index 3ef88764dbc6a6372cea2633bf1c94a185afc8a6..c4096f25ff0e64f04d6d3db924edfc28125a1817 100644 (file)
@@ -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()
 /* }}} */