]> granicus.if.org Git - php/commitdiff
Persist these numbers so that they stay for the duration of the entire process
authorZeev Suraski <zeev@php.net>
Sat, 18 Nov 2000 12:48:31 +0000 (12:48 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 18 Nov 2000 12:48:31 +0000 (12:48 +0000)
ext/bcmath/bcmath.c

index 78a2521b8c3b726be8f6360359063b4455462768..66a46307e86e906082627c43db7bd1b8b21916ea 100644 (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;
 }