diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/file.c | 3 | ||||
| -rw-r--r-- | ext/standard/php3_string.h | 8 |
2 files changed, 3 insertions, 8 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); } } diff --git a/ext/standard/php3_string.h b/ext/standard/php3_string.h index eea721f5dd..04c2f79f95 100644 --- a/ext/standard/php3_string.h +++ b/ext/standard/php3_string.h @@ -80,14 +80,6 @@ extern void php3_stristr(INTERNAL_FUNCTION_PARAMETERS); extern void php3_chunk_split(INTERNAL_FUNCTION_PARAMETERS); extern void php3_parsestr(INTERNAL_FUNCTION_PARAMETERS); -#if HAVE_CRYPT -extern php3_module_entry crypt_module_entry; -#define crypt_module_ptr &crypt_module_entry -extern void php3_crypt(INTERNAL_FUNCTION_PARAMETERS); -#else -#define crypt_module_ptr NULL -#endif - extern PHPAPI char *_php3_strtoupper(char *s); extern PHPAPI char *_php3_strtolower(char *s); extern char *_StrTr(char *string, char *str_from, char *str_to); |
