summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Lopes <glopes@nebm.ist.utl.pt>2013-02-01 16:38:54 +0100
committerGustavo Lopes <glopes@nebm.ist.utl.pt>2013-02-02 15:29:18 +0100
commitac6342bbc0a2a41cf2b698e37b981ce63e8b6305 (patch)
tree9395ea09a1f97139d35cf31d0c04b6cccec87883
parent40663ede837c401212e950a3f65a7cd2885ccead (diff)
downloadphp-git-ac6342bbc0a2a41cf2b698e37b981ce63e8b6305.tar.gz
Fix wrong blocking state being set
-rw-r--r--ext/sockets/sockets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 6069fc5ec7..c6c5477967 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -1126,7 +1126,7 @@ PHP_FUNCTION(socket_set_nonblock)
if (stream != NULL) {
if (php_stream_set_option(stream, PHP_STREAM_OPTION_BLOCKING, 0,
NULL) != -1) {
- php_sock->blocking = 1;
+ php_sock->blocking = 0;
RETURN_TRUE;
}
}