summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c3
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);
}
}