From: Thies C. Arntzen Date: Wed, 8 Dec 1999 14:18:28 +0000 (+0000) Subject: make non-ZTS happy again X-Git-Tag: RETURN_REF_BP~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7089e600fd6f087987f19acd9c340e945c96650;p=php make non-ZTS happy again --- diff --git a/ext/standard/assert.c b/ext/standard/assert.c index f17a722083..08cb61db9f 100644 --- a/ext/standard/assert.c +++ b/ext/standard/assert.c @@ -86,10 +86,12 @@ PHP_INI_BEGIN() STD_PHP_INI_ENTRY("assert.quiet_eval", "0", PHP_INI_ALL, OnUpdateInt, quiet_eval, php_assert_globals, assert_globals) PHP_INI_END() +#ifdef ZTS static void php_assert_init_globals(php_assert_globals *assert_globals) { ASSERT(callback) = 0; } +#endif PHP_MINIT_FUNCTION(assert) { @@ -174,7 +176,7 @@ PHP_FUNCTION(assert) if ((*assertion)->type == IS_STRING) { zval retval; - int old_error_reporting; + int old_error_reporting = 0; /* shut up gcc! */ myeval = (*assertion)->value.str.val;