com php-src: Fix wrong blocking state being set: ext/sockets/sockets.c
| From: | Gustavo André dos Santos Lopes | Date: | Sat, 02 Feb 2013 14:29:18 +0000 |
| Subject: | com php-src: Fix wrong blocking state being set: ext/sockets/sockets.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71108@lists.php.net to get a copy of this message | ||
Commit: ac6342bbc0a2a41cf2b698e37b981ce63e8b6305
Author: Gustavo Lopes <glopes@nebm.ist.utl.pt> Fri, 1 Feb 2013 16:38:54 +0100
Parents: 40663ede837c401212e950a3f65a7cd2885ccead
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ac6342bbc0a2a41cf2b698e37b981ce63e8b6305
Log:
Fix wrong blocking state being set
Changed paths:
M ext/sockets/sockets.c
Diff:
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 6069fc5..c6c5477 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;
}
}