Browse Source

Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  fixed the cast and incompatible pointer warning
pull/834/head
Anatol Belski 12 years ago
parent
commit
bcdbd47117
  1. 4
      sapi/cgi/fastcgi.c

4
sapi/cgi/fastcgi.c

@ -1112,7 +1112,7 @@ static inline void fcgi_close(fcgi_request *req, int force, int destroy)
shutdown(req->fd, 1);
/* read the last FCGI_STDIN header (it may be omitted) */
recv(req->fd, &buf, sizeof(buf), 0);
recv(req->fd, (char *)(&buf), sizeof(buf), 0);
}
closesocket(req->fd);
}
@ -1122,7 +1122,7 @@ static inline void fcgi_close(fcgi_request *req, int force, int destroy)
shutdown(req->fd, 1);
/* read the last FCGI_STDIN header (it may be omitted) */
recv(req->fd, &buf, sizeof(buf), 0);
recv(req->fd, (char *)(&buf), sizeof(buf), 0);
}
close(req->fd);
#endif

Loading…
Cancel
Save