cvs: php-src(PHP_5_2) / NEWS /ext/sockets sockets.c
| From: | Jani Taskinen | Date: | Tue, 24 Jul 2007 11:35:08 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / NEWS /ext/sockets sockets.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-45571@lists.php.net to get a copy of this message | ||
jani Tue Jul 24 11:35:08 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/php-src/ext/sockets sockets.c
Log:
MFH:- Added missing MSG_EOR and MSG_EOF constants
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.849&r2=1.2027.2.547.2.850&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.849 php-src/NEWS:1.2027.2.547.2.850
--- php-src/NEWS:1.2027.2.547.2.849 Tue Jul 24 09:27:46 2007
+++ php-src/NEWS Tue Jul 24 11:35:08 2007
@@ -30,6 +30,7 @@
- Added missing error check inside bcpowmod(). (Ilia)
- Added CURLOPT_PRIVATE & CURLINFO_PRIVATE constants.
(Andrey A. Belashkov, Tony)
+- Added missing MSG_EOR and MSG_EOF constants to sockets extension. (Jani)
- Implemented FR #41884 (ReflectionClass::getDefaultProperties() does not handle
static attributes). (Tony)
http://cvs.php.net/viewvc.cgi/php-src/ext/sockets/sockets.c?r1=1.171.2.9.2.12&r2=1.171.2.9.2.13&diff_format=u
Index: php-src/ext/sockets/sockets.c
diff -u php-src/ext/sockets/sockets.c:1.171.2.9.2.12 php-src/ext/sockets/sockets.c:1.171.2.9.2.13
--- php-src/ext/sockets/sockets.c:1.171.2.9.2.12 Sun Jul 22 23:01:20 2007
+++ php-src/ext/sockets/sockets.c Tue Jul 24 11:35:08 2007
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sockets.c,v 1.171.2.9.2.12 2007/07/22 23:01:20 jani Exp $ */
+/* $Id: sockets.c,v 1.171.2.9.2.13 2007/07/24 11:35:08 jani Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -68,6 +68,12 @@
#endif
#endif
+#ifndef MSG_EOF
+#ifdef MSG_FIN
+#define MSG_EOF MSG_FIN
+#endif
+#endif
+
#ifndef SUN_LEN
#define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
#endif
@@ -480,6 +486,12 @@
REGISTER_LONG_CONSTANT("MSG_WAITALL", MSG_WAITALL, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("MSG_PEEK", MSG_PEEK, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("MSG_DONTROUTE", MSG_DONTROUTE, CONST_CS | CONST_PERSISTENT);
+#ifdef MSG_EOR
+ REGISTER_LONG_CONSTANT("MSG_EOR", MSG_EOR, CONST_CS | CONST_PERSISTENT);
+#endif
+#ifdef MSG_EOF
+ REGISTER_LONG_CONSTANT("MSG_EOF", MSG_EOF, CONST_CS | CONST_PERSISTENT);
+#endif
REGISTER_LONG_CONSTANT("SO_DEBUG", SO_DEBUG, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SO_REUSEADDR", SO_REUSEADDR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SO_KEEPALIVE", SO_KEEPALIVE, CONST_CS | CONST_PERSISTENT);