summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-12 08:25:22 +0000
committerMarcus Boerger <helly@php.net>2003-12-12 08:25:22 +0000
commit2f9be5d518d82e4fc05c0357a77bea42914d30e5 (patch)
treec2d7ec73c152ba42667becffbec89257b743bbf8 /main/main.c
parent2c7c86bc60443b7b14a7f1d284ffc8d35b294790 (diff)
downloadphp-git-2f9be5d518d82e4fc05c0357a77bea42914d30e5.tar.gz
Do not use before they are initialized.
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c4
1 files changed, 2 insertions, 2 deletions
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);