summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-10-22 18:59:33 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-10-22 18:59:33 +0000
commit15aced54b08d60c9283e0c046a25bbce1c2d1481 (patch)
tree3cc1ec231d0619a780c1089addcbdd45cdbbfce5 /ext/sockets
parenta8c8963bc04053c63f1015360ddb690144684c63 (diff)
downloadphp-git-15aced54b08d60c9283e0c046a25bbce1c2d1481.tar.gz
MFH: Fixed bug #46360 (TCP_NODELAY constant for socket_{get,set}_option)
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/sockets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index e8ad62c5b6..589e33c567 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -661,6 +661,9 @@ PHP_MINIT_FUNCTION(sockets)
REGISTER_LONG_CONSTANT("SO_ERROR", SO_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SOL_SOCKET", SOL_SOCKET, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SOMAXCONN", SOMAXCONN, CONST_CS | CONST_PERSISTENT);
+#ifdef TCP_NODELAY
+ REGISTER_LONG_CONSTANT("TCP_NODELAY", TCP_NODELAY, CONST_CS | CONST_PERSISTENT);
+#endif
REGISTER_LONG_CONSTANT("PHP_NORMAL_READ", PHP_NORMAL_READ, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PHP_BINARY_READ", PHP_BINARY_READ, CONST_CS | CONST_PERSISTENT);