Re: [PHP4BETA] cvs: /php4/ext/standard assert.c

From: Date: Wed, 08 Dec 1999 09:47:28 +0000
Subject: Re: [PHP4BETA] cvs: /php4/ext/standard assert.c
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7658@lists.php.net to get a copy of this message
On Tue, 7 Dec 1999, Sam Ruby wrote: > rubys Tue Dec 7 16:08:12 1999 EDT > > Modified files: > /php4/ext/standard assert.c > Log: > Fill in empty constructor in order to appease Sascha ;-) > More seriously, uninitialized values cause MSHUTDOWN to trap. > Only an issue because assert was added to internal_functions. oops, you're right assert_globals->callback needs to be set in php_assert_init_globals() all the other should be inited by the _INI_ mechanism. > > > Index: php4/ext/standard/assert.c > diff -u php4/ext/standard/assert.c:1.6 php4/ext/standard/assert.c:1.7 > --- php4/ext/standard/assert.c:1.6 Tue Dec 7 11:45:46 1999 > +++ php4/ext/standard/assert.c Tue Dec 7 16:07:42 1999 > @@ -16,7 +16,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: assert.c,v 1.6 1999/12/07 16:45:46 thies Exp $ */ > +/* $Id: assert.c,v 1.7 1999/12/07 21:07:42 rubys Exp $ */ > > /* {{{ includes/startup/misc */ > > @@ -88,6 +88,12 @@ > > static void php_assert_init_globals(php_assert_globals *assert_globals) > { > + assert_globals->active = 0; > + assert_globals->bail = 0; > + assert_globals->warning = 1; > + assert_globals->quiet_eval = 0; > + assert_globals->default_callback = 0; > + assert_globals->callback = 0; > } > > PHP_MINIT_FUNCTION(assert) > > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#7658) next »