cvs: /php4/ext/standard assert.c

From: Date: Tue, 07 Dec 1999 21:08:12 +0000
Subject: cvs: /php4/ext/standard assert.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-7642@lists.php.net to get a copy of this message
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. 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)

« previous php.version4 (#7642) next »