]> granicus.if.org Git - php/commitdiff
Do not use before they are initialized.
authorMarcus Boerger <helly@php.net>
Fri, 12 Dec 2003 08:25:22 +0000 (08:25 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 12 Dec 2003 08:25:22 +0000 (08:25 +0000)
main/main.c

index eb78f73c76adcfd340b7e9e71edac27094ce9d96..1b81269a3e0121808af46c3940dee19831512a88 100644 (file)
@@ -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);