mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Persist these numbers so that they stay for the duration of the entire process
This commit is contained in:
parent
42b0e1cb1f
commit
82952f8830
@ -60,7 +60,15 @@ static long bc_precision;
|
||||
|
||||
PHP_MINIT_FUNCTION(bcmath)
|
||||
{
|
||||
extern bc_num _zero_;
|
||||
extern bc_num _one_;
|
||||
extern bc_num _two_;
|
||||
|
||||
init_numbers();
|
||||
persist_alloc(_zero_);
|
||||
persist_alloc(_one_);
|
||||
persist_alloc(_two_);
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user