Browse Source

fix int to void* cast on x64

pull/900/head
Anatol Belski 11 years ago
parent
commit
54868c84ce
  1. 8
      sapi/cgi/fastcgi.c

8
sapi/cgi/fastcgi.c

@ -435,7 +435,9 @@ int fcgi_init(void)
str = getenv("_FCGI_SHUTDOWN_EVENT_");
if (str != NULL) {
HANDLE shutdown_event = (HANDLE) atoi(str);
zend_long ev;
ZEND_ATOL(ev, str);
HANDLE shutdown_event = (HANDLE) ev;
if (!CreateThread(NULL, 0, fcgi_shutdown_thread,
shutdown_event, 0, NULL)) {
return -1;
@ -443,7 +445,9 @@ int fcgi_init(void)
}
str = getenv("_FCGI_MUTEX_");
if (str != NULL) {
fcgi_accept_mutex = (HANDLE) atoi(str);
zend_long mt;
ZEND_ATOL(mt, str);
fcgi_accept_mutex = (HANDLE) mt;
}
return is_fastcgi = 1;
} else {

Loading…
Cancel
Save