summaryrefslogtreecommitdiff
path: root/main/streams/transports.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-02-24 15:48:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-02-24 15:48:40 +0000
commit1b8a85415d88a7618abb0bf947e471e1d535854c (patch)
tree5b443f66f7c4c4f2125299bc8ca778f3096cfb25 /main/streams/transports.c
parente4ff13e43e13e1bc0c9a3a7500668b6986f9b0e8 (diff)
downloadphp-git-1b8a85415d88a7618abb0bf947e471e1d535854c.tar.gz
Fixed Bug #39396 (stream_set_blocking crashes on Win32).
Diffstat (limited to 'main/streams/transports.c')
-rw-r--r--main/streams/transports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/transports.c b/main/streams/transports.c
index 54d0d9a9da..07d0c795e3 100644
--- a/main/streams/transports.c
+++ b/main/streams/transports.c
@@ -139,7 +139,7 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, long namelen, int
if ((flags & STREAM_XPORT_SERVER) == 0) {
/* client */
- if (flags & STREAM_XPORT_CONNECT) {
+ if (flags & (STREAM_XPORT_CONNECT|STREAM_XPORT_CONNECT_ASYNC)) {
if (-1 == php_stream_xport_connect(stream, name, namelen,
flags & STREAM_XPORT_CONNECT_ASYNC ? 1 : 0,
timeout, &error_text, error_code TSRMLS_CC)) {