tony2001 Thu Nov 17 09:19:09 2005 EDT
Modified files:
/php-src/main/streams plain_wrapper.c
Log:
fix #35079 (stream_set_blocking(true) toggles, not enables blocking)
patch by askalski at gmail dot com
http://cvs.php.net/diff.php/php-src/main/streams/plain_wrapper.c?r1=1.53&r2=1.54&ty=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.53
php-src/main/streams/plain_wrapper.c:1.54
--- php-src/main/streams/plain_wrapper.c:1.53 Fri Aug 26 08:50:06 2005
+++ php-src/main/streams/plain_wrapper.c Thu Nov 17 09:19:06 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.53 2005/08/26 12:50:06 derick Exp $ */
+/* $Id: plain_wrapper.c,v 1.54 2005/11/17 14:19:06 tony2001 Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -540,7 +540,7 @@
flags = fcntl(fd, F_GETFL, 0);
oldval = (flags & O_NONBLOCK) ? 0 : 1;
if (value)
- flags ^= O_NONBLOCK;
+ flags &= ~O_NONBLOCK;
else
flags |= O_NONBLOCK;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php