From: Zeev Suraski Date: Sat, 18 Nov 2000 12:48:31 +0000 (+0000) Subject: Persist these numbers so that they stay for the duration of the entire process X-Git-Tag: php-4.0.4RC3~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82952f883077ac92831d317f3ec601231e7f2b19;p=php Persist these numbers so that they stay for the duration of the entire process --- 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; }