From: Marcus Boerger Date: Fri, 12 Dec 2003 08:25:22 +0000 (+0000) Subject: Do not use before they are initialized. X-Git-Tag: php-5.0.0b3RC1~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f9be5d518d82e4fc05c0357a77bea42914d30e5;p=php Do not use before they are initialized. --- diff --git a/main/main.c b/main/main.c index eb78f73c76..1b81269a3e 100644 --- a/main/main.c +++ b/main/main.c @@ -576,7 +576,7 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c php_error(type, "%s", message); efree(message); - if (PG(track_errors) && EG(active_symbol_table)) { + if (PG(track_errors) && module_initialized && EG(active_symbol_table)) { zval *tmp; ALLOC_INIT_ZVAL(tmp); ZVAL_STRINGL(tmp, buffer, buffer_len, 1); @@ -820,7 +820,7 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ efree(buffer); return; } - if (PG(track_errors) && EG(active_symbol_table)) { + if (PG(track_errors) && module_initialized && EG(active_symbol_table)) { pval *tmp; ALLOC_ZVAL(tmp);