memset(&BG(url_adapt_session_ex), 0, sizeof(BG(url_adapt_session_ex)));
memset(&BG(url_adapt_output_ex), 0, sizeof(BG(url_adapt_output_ex)));
+ BG(url_adapt_session_ex).type = 1;
+ BG(url_adapt_output_ex).type = 0;
+
+ zend_hash_init(&BG(url_adapt_session_hosts_ht), 0, NULL, NULL, 1);
+ zend_hash_init(&BG(url_adapt_output_hosts_ht), 0, NULL, NULL, 1);
+
#if defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T)
memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)));
#endif
zend_hash_destroy(basic_globals_p->url_adapt_output_ex.tags);
free(basic_globals_p->url_adapt_output_ex.tags);
}
+
+ zend_hash_destroy(&basic_globals_p->url_adapt_session_hosts_ht);
+ zend_hash_destroy(&basic_globals_p->url_adapt_output_hosts_ht);
}
/* }}} */
PHP_MINIT_FUNCTION(url_scanner)
{
- BG(url_adapt_session_ex).tags = NULL;
- BG(url_adapt_session_ex).form_app.s = BG(url_adapt_session_ex).url_app.s = NULL;
- zend_hash_init(&BG(url_adapt_session_hosts_ht), 0, NULL, NULL, 1);
-
- BG(url_adapt_output_ex).tags = NULL;
- BG(url_adapt_output_ex).form_app.s = BG(url_adapt_output_ex).url_app.s = NULL;
- zend_hash_init(&BG(url_adapt_output_hosts_ht), 0, NULL, NULL, 1);
-
- BG(url_adapt_session_ex).type = 1;
- BG(url_adapt_output_ex).type = 0;
-
REGISTER_INI_ENTRIES();
return SUCCESS;
}
PHP_MINIT_FUNCTION(url_scanner)
{
- BG(url_adapt_session_ex).tags = NULL;
- BG(url_adapt_session_ex).form_app.s = BG(url_adapt_session_ex).url_app.s = NULL;
- zend_hash_init(&BG(url_adapt_session_hosts_ht), 0, NULL, NULL, 1);
-
- BG(url_adapt_output_ex).tags = NULL;
- BG(url_adapt_output_ex).form_app.s = BG(url_adapt_output_ex).url_app.s = NULL;
- zend_hash_init(&BG(url_adapt_output_hosts_ht), 0, NULL, NULL, 1);
-
- BG(url_adapt_session_ex).type = 1;
- BG(url_adapt_output_ex).type = 0;
-
REGISTER_INI_ENTRIES();
return SUCCESS;
}