]> granicus.if.org Git - php/commitdiff
Fix wrong blocking state being set
authorGustavo Lopes <glopes@nebm.ist.utl.pt>
Fri, 1 Feb 2013 15:38:54 +0000 (16:38 +0100)
committerGustavo Lopes <glopes@nebm.ist.utl.pt>
Sat, 2 Feb 2013 14:29:18 +0000 (15:29 +0100)
ext/sockets/sockets.c

index 6069fc5ec72b12a906b122fe75590586abf90d92..c6c5477967c9290be97e02a446b2ef77449fab0c 100644 (file)
@@ -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;
                        }
                }