cvs: php-src(PHP_4_3) / NEWS /ext/sockets config.m4 php_sockets_win.h sockets.c

From: Date: Sat, 12 Feb 2005 18:16:05 +0000
Subject: cvs: php-src(PHP_4_3) / NEWS /ext/sockets config.m4 php_sockets_win.h sockets.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-30366@lists.php.net to get a copy of this message
sniper Sat Feb 12 13:16:05 2005 EDT Modified files: (Branch: PHP_4_3) /php-src NEWS /php-src/ext/sockets config.m4 php_sockets_win.h sockets.c Log: - Fixed bug #31936 (set_h_errno() is redefined incompatibly) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.834&r2=1.1247.2.835&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.834 php-src/NEWS:1.1247.2.835 --- php-src/NEWS:1.1247.2.834 Thu Feb 10 21:12:26 2005 +++ php-src/NEWS Sat Feb 12 13:16:03 2005 @@ -7,6 +7,7 @@ - Fixed several leaks in ext/filepro. (Tony) - Fixed build system to always use bundled libtool files. (Jani) - Fixed MacOSX shared extensions crashing on Apache startup. (Rasmus) +- Fixed bug #31936 (set_h_errno() is redefined incompatibly). (Jani) - Fixed bug #31858 (--disable-cli does not force --without-pear). (Jani) - Fixed bug #31842 (*date('r') does not return RFC2822 conforming date string). (Jani) http://cvs.php.net/diff.php/php-src/ext/sockets/config.m4?r1=1.11.2.1&r2=1.11.2.2&ty=u Index: php-src/ext/sockets/config.m4 diff -u php-src/ext/sockets/config.m4:1.11.2.1 php-src/ext/sockets/config.m4:1.11.2.2 --- php-src/ext/sockets/config.m4:1.11.2.1 Fri Apr 4 13:40:38 2003 +++ php-src/ext/sockets/config.m4 Sat Feb 12 13:16:04 2005 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.11.2.1 2003/04/04 18:40:38 moriyoshi Exp $ +dnl $Id: config.m4,v 1.11.2.2 2005/02/12 18:16:04 sniper Exp $ dnl PHP_ARG_ENABLE(sockets, whether to enable sockets support, @@ -18,7 +18,7 @@ AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr]) fi - AC_CHECK_FUNCS([hstrerror]) + AC_CHECK_FUNCS([hstrerror set_h_errno]) AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h errno.h]) AC_TRY_COMPILE([ #include <sys/types.h> http://cvs.php.net/diff.php/php-src/ext/sockets/php_sockets_win.h?r1=1.5.8.2&r2=1.5.8.3&ty=u Index: php-src/ext/sockets/php_sockets_win.h diff -u php-src/ext/sockets/php_sockets_win.h:1.5.8.2 php-src/ext/sockets/php_sockets_win.h:1.5.8.3 --- php-src/ext/sockets/php_sockets_win.h:1.5.8.2 Sun Jul 20 06:54:03 2003 +++ php-src/ext/sockets/php_sockets_win.h Sat Feb 12 13:16:04 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sockets_win.h,v 1.5.8.2 2003/07/20 10:54:03 sniper Exp $ */ +/* $Id: php_sockets_win.h,v 1.5.8.3 2005/02/12 18:16:04 sniper Exp $ */ #ifdef PHP_WIN32 @@ -41,7 +41,7 @@ #define errno WSAGetLastError() #define h_errno WSAGetLastError() #define set_errno(a) WSASetLastError(a) -#define set_h_errno(a) WSASetLastError(a) +#define SET_H_ERRNO(a) WSASetLastError(a) #define close(a) closesocket(a) #define CMSG_DATA(cmsg) ((cmsg)->cmsg_data) http://cvs.php.net/diff.php/php-src/ext/sockets/sockets.c?r1=1.125.2.24&r2=1.125.2.25&ty=u Index: php-src/ext/sockets/sockets.c diff -u php-src/ext/sockets/sockets.c:1.125.2.24 php-src/ext/sockets/sockets.c:1.125.2.25 --- php-src/ext/sockets/sockets.c:1.125.2.24 Mon Jun 7 00:42:40 2004 +++ php-src/ext/sockets/sockets.c Sat Feb 12 13:16:04 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.125.2.24 2004/06/07 04:42:40 pollita Exp $ */ +/* $Id: sockets.c,v 1.125.2.25 2005/02/12 18:16:04 sniper Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -57,7 +57,11 @@ # include <sys/uio.h> # define IS_INVALID_SOCKET(a) (a->bsd_socket < 0) # define set_errno(a) (errno = a) -# define set_h_errno(a) (h_errno = a) +# ifdef HAVE_SET_H_ERRNO +# define SET_H_ERRNO(newval) set_h_errno(newval) +# else +# define SET_H_ERRNO(newval) h_errno = (newval) +# endif #else /* windows */ # include "php_sockets.h" # include "php_sockets_win.h" @@ -1762,7 +1766,7 @@ struct msghdr hdr; struct sockaddr_in *sin = (struct sockaddr_in *) &sa; - set_h_errno(0); + SET_H_ERRNO(0); set_errno(0); memset(&hdr, 0, sizeof(hdr));

« previous php.cvs (#30366) next »