diff options
Diffstat (limited to 'ext/standard/file.c')
| -rw-r--r-- | ext/standard/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index df3e48c50b..0bd00625a4 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -426,6 +426,9 @@ static void _php3_closesocket(int *sock) { #else close(socketd); #endif +#if HAVE_SHUTDOWN + shutdown(socketd, 0); +#endif efree(sock); } } |
