diff --git a/ChangeLog.TODO b/ChangeLog.TODO index e503630983c..a76d834d6f4 100644 --- a/ChangeLog.TODO +++ b/ChangeLog.TODO @@ -12,7 +12,6 @@ over to PHP4. - fixed some NULL-column related problems in OCI8-module. - optimized fgets() and fread() - memory leak in operators.c fixed -- socket leak fixed (Sascha Schumann) - Fixed the XML bug that caused garbage behind attributes - Some Informix driver improvements. - PUT method support (mlemos@acm.org) @@ -25,7 +24,6 @@ over to PHP4. 'n' - month, numeric, no leading zeros - Make fgetss() slightly smarter - Add strip_tags() which uses the fgetss state-machine but acts on a string -- Add CRYPT_SALT_LENGTH constant March 1 1999, Version 3.0.7 - Added pdf_put_image and pdf_execute_image diff --git a/ext/standard/file.c b/ext/standard/file.c index df3e48c50b0..0bd00625a43 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -425,6 +425,9 @@ static void _php3_closesocket(int *sock) { closesocket(socketd); #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 eea721f5ddb..04c2f79f95c 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); diff --git a/internal_functions.c b/internal_functions.c index 6048ada3f89..03c99ea7b10 100644 --- a/internal_functions.c +++ b/internal_functions.c @@ -47,6 +47,7 @@ #include "ext/gettext/php3_gettext.h" #include "functions/php3_ifx.h" +#include "functions/php3_crypt.h" #include "functions/php3_ldap.h" #include "functions/php3_mysql.h" #include "functions/php3_bcmath.h"