summaryrefslogtreecommitdiff
path: root/ext/bcmath/php_bcmath.h
diff options
context:
space:
mode:
authorVladyslav Startsev <17382248+vladyslavstartsev@users.noreply.github.com>2020-04-25 02:18:09 +0300
committerNikita Popov <nikita.ppv@gmail.com>2020-04-27 11:53:26 +0200
commitb64aee97069fc77c141c787e5408d9e12f5971b4 (patch)
tree645099cfe50b3bbcff19d83374e4f7cc94d833f5 /ext/bcmath/php_bcmath.h
parent48a34bc1202e9664121c9e9aa004c79ac71af3f5 (diff)
downloadphp-git-b64aee97069fc77c141c787e5408d9e12f5971b4.tar.gz
Ensure bcmath scale is between 0 and INT_MAX
Make sure bcmatch scale is between 0 and INT_MAX, both for the ini setting, and all the functions accepting a scale argument. A ValueError is thrown if a function argument is out of range. Closes GH-5455.
Diffstat (limited to 'ext/bcmath/php_bcmath.h')
-rw-r--r--ext/bcmath/php_bcmath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bcmath/php_bcmath.h b/ext/bcmath/php_bcmath.h
index bafaf29e7a..c7a8a85d73 100644
--- a/ext/bcmath/php_bcmath.h
+++ b/ext/bcmath/php_bcmath.h
@@ -33,7 +33,7 @@ ZEND_BEGIN_MODULE_GLOBALS(bcmath)
bc_num _zero_;
bc_num _one_;
bc_num _two_;
- zend_long bc_precision;
+ int bc_precision;
ZEND_END_MODULE_GLOBALS(bcmath)
#if defined(ZTS) && defined(COMPILE_DL_BCMATH)