Persist these numbers so that they stay for the duration of the entire process

This commit is contained in:
Zeev Suraski 2000-11-18 12:48:31 +00:00
parent 42b0e1cb1f
commit 82952f8830

View File

@ -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;
}