summaryrefslogtreecommitdiff
path: root/ext/standard/streamsfuncs.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-07-23 11:25:14 +0000
committerAntony Dovgal <tony2001@php.net>2008-07-23 11:25:14 +0000
commit28a22396d4c12253f77c11095f37944a0dd661b9 (patch)
tree4a67877db12d22a70a443b40a74a74ee0e2efe9a /ext/standard/streamsfuncs.c
parent16ace1828e85f7cbe1179a29c88dad6d921e2a71 (diff)
downloadphp-git-28a22396d4c12253f77c11095f37944a0dd661b9.tar.gz
MFH: invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r--ext/standard/streamsfuncs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 195e364157..459c8389ed 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -155,8 +155,6 @@ PHP_FUNCTION(stream_socket_client)
RETURN_FALSE;
}
- stream->flags |= PHP_STREAM_FLAG_FCLOSE;
-
if (errstr) {
efree(errstr);
}
@@ -204,8 +202,6 @@ PHP_FUNCTION(stream_socket_server)
STREAM_XPORT_SERVER | flags,
NULL, NULL, context, &errstr, &err);
- stream->flags |= PHP_STREAM_FLAG_FCLOSE;
-
if (stream == NULL) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s (%s)", host, errstr == NULL ? "Unknown error" : errstr);
}
@@ -271,8 +267,6 @@ PHP_FUNCTION(stream_socket_accept)
&tv, &errstr
TSRMLS_CC) && clistream) {
- clistream->flags |= PHP_STREAM_FLAG_FCLOSE;
-
if (peername) {
ZVAL_STRINGL(zpeername, peername, peername_len, 0);
}