Browse Source

MFPHP_4_3

PHP-5
Harald Radi 24 years ago
parent
commit
f8e014b228
  1. 8
      ext/standard/basic_functions.c
  2. 8
      main/main.c

8
ext/standard/basic_functions.c

@ -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;
}

8
main/main.c

@ -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
}
/* }}} */

Loading…
Cancel
Save