mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Made bcmath extension thread safe.
@Made bcmath extension thread safe. (Sander)
This commit is contained in:
parent
64a75d6d77
commit
f200f739d8
14 changed files with 186 additions and 202 deletions
|
@ -41,14 +41,13 @@
|
|||
/* In some places we need to check if the number NUM is zero. */
|
||||
|
||||
char
|
||||
bc_is_zero (num)
|
||||
bc_num num;
|
||||
bc_is_zero (bc_num num TSRMLS_DC)
|
||||
{
|
||||
int count;
|
||||
char *nptr;
|
||||
|
||||
/* Quick check. */
|
||||
if (num == _zero_) return TRUE;
|
||||
if (num == BCG(_zero_)) return TRUE;
|
||||
|
||||
/* Initialize */
|
||||
count = num->n_len + num->n_scale;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue