summaryrefslogtreecommitdiff
path: root/ext/bcmath/bcmath.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-11-18 12:48:31 +0000
committerZeev Suraski <zeev@php.net>2000-11-18 12:48:31 +0000
commit82952f883077ac92831d317f3ec601231e7f2b19 (patch)
treee6ae8df4e1cf4a7130b84c51696d2ced2a3348a9 /ext/bcmath/bcmath.c
parent42b0e1cb1f90d36735265e0c2d51cbb6c8c2983d (diff)
downloadphp-git-82952f883077ac92831d317f3ec601231e7f2b19.tar.gz
Persist these numbers so that they stay for the duration of the entire process
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r--ext/bcmath/bcmath.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 78a2521b8c..66a46307e8 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -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;
}