[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/sockets sockets.c

2001-04-10 Thread Jason Greene

jason   Tue Apr 10 15:01:58 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/sockets   sockets.c 
  Log:
  MFH, I have tested this thoroughly.
  
  
Index: php4/ext/sockets/sockets.c
diff -u php4/ext/sockets/sockets.c:1.32.2.1 php4/ext/sockets/sockets.c:1.32.2.2
--- php4/ext/sockets/sockets.c:1.32.2.1 Thu Mar 22 05:20:35 2001
+++ php4/ext/sockets/sockets.c  Tue Apr 10 15:01:57 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: sockets.c,v 1.32.2.1 2001/03/22 13:20:35 sniper Exp $ */
+/* $Id: sockets.c,v 1.32.2.2 2001/04/10 22:01:57 jason Exp $ */
 
 #include "php.h"
 
@@ -34,6 +34,10 @@
 #define _XOPEN_SOURCE_EXTENDED
 #define _XPG4_2
 #define __EXTENSIONS__
+
+#ifndef __PRAGMA_REDEFINE_EXTNAME
+#define __PRAGMA_REDEFINE_EXTNAME
+#endif
 
 #include "ext/standard/info.h"
 #include "php_sockets.h"



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/sockets sockets.c

2001-03-22 Thread Jani Taskinen

sniper  Thu Mar 22 05:20:35 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/sockets   sockets.c 
  Log:
  MFH
  
  
Index: php4/ext/sockets/sockets.c
diff -u php4/ext/sockets/sockets.c:1.32 php4/ext/sockets/sockets.c:1.32.2.1
--- php4/ext/sockets/sockets.c:1.32 Sun Feb 25 22:07:16 2001
+++ php4/ext/sockets/sockets.c  Thu Mar 22 05:20:35 2001
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: sockets.c,v 1.32 2001/02/26 06:07:16 andi Exp $ */
+/* $Id: sockets.c,v 1.32.2.1 2001/03/22 13:20:35 sniper Exp $ */
 
 #include "php.h"
 
@@ -1130,6 +1130,7 @@
if (sock_type-sa_family == AF_UNIX) {
struct sockaddr_un *sa = (struct sockaddr_un *) sock_type;
memset(sa, 0, sizeof(sa_storage)); /* This is safe - sock_type = 
sa_storage - sa = sock_type */
+   sa-sun_family = AF_UNIX;
snprintf(sa-sun_path, 108, "%s", Z_STRVAL_PP(arg1));
ret = bind(Z_LVAL_PP(arg0), (struct sockaddr *) sa, SUN_LEN(sa));
} else if (sock_type-sa_family == AF_INET) {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]