MFPHP_4_3

This commit is contained in:
Harald Radi 2003-01-29 00:49:09 +00:00
parent e6170c0b30
commit f8e014b228
2 changed files with 8 additions and 8 deletions

View File

@ -1133,10 +1133,6 @@ PHP_MSHUTDOWN_FUNCTION(basic)
PHP_RINIT_FUNCTION(basic)
{
#ifdef PHP_WIN32
CoInitialize(NULL);
#endif
memset(BG(strtok_table), 0, 256);
BG(strtok_string) = NULL;
BG(strtok_zval) = NULL;
@ -1229,10 +1225,6 @@ PHP_RSHUTDOWN_FUNCTION(basic)
}
#endif
#ifdef PHP_WIN32
CoUninitialize();
#endif
return SUCCESS;
}

View File

@ -873,6 +873,10 @@ int php_request_startup(TSRMLS_D)
{
int retval = SUCCESS;
#ifdef PHP_WIN32
CoInitialize(NULL);
#endif
#if PHP_SIGCHILD
signal(SIGCHLD, sigchld_handler);
#endif
@ -1072,6 +1076,10 @@ void php_request_shutdown(void *dummy)
zend_try {
zend_unset_timeout(TSRMLS_C);
} zend_end_try();
#ifdef PHP_WIN32
CoUninitialize();
#endif
}
/* }}} */