cvs: php4 /ext/bcmath bcmath.c

From: Date: Sat, 18 Nov 2000 12:48:31 +0000
Subject: cvs: php4 /ext/bcmath bcmath.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2673@lists.php.net to get a copy of this message
zeev Sat Nov 18 04:48:31 2000 EDT Modified files: /php4/ext/bcmath bcmath.c Log: Persist these numbers so that they stay for the duration of the entire process Index: php4/ext/bcmath/bcmath.c diff -u php4/ext/bcmath/bcmath.c:1.24 php4/ext/bcmath/bcmath.c:1.25 --- php4/ext/bcmath/bcmath.c:1.24 Fri Nov 17 18:59:31 2000 +++ php4/ext/bcmath/bcmath.c Sat Nov 18 04:48:31 2000 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: bcmath.c,v 1.24 2000/11/18 02:59:31 zeev Exp $ */ +/* $Id: bcmath.c,v 1.25 2000/11/18 12:48:31 zeev Exp $ */ #include "php.h" @@ -60,7 +60,15 @@ 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; }

« previous php.cvs (#2673) next »