|
|
|
@ -151,8 +151,6 @@ PHP_FUNCTION(stream_socket_client) |
|
|
|
RETURN_FALSE; |
|
|
|
} |
|
|
|
|
|
|
|
stream->flags |= PHP_STREAM_FLAG_FCLOSE; |
|
|
|
|
|
|
|
if (errstr) { |
|
|
|
efree(errstr); |
|
|
|
} |
|
|
|
@ -199,8 +197,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); |
|
|
|
} |
|
|
|
@ -268,8 +264,6 @@ PHP_FUNCTION(stream_socket_accept) |
|
|
|
&tv, &errstr |
|
|
|
TSRMLS_CC) && clistream) { |
|
|
|
|
|
|
|
clistream->flags |= PHP_STREAM_FLAG_FCLOSE; |
|
|
|
|
|
|
|
if (peername) { |
|
|
|
Z_TYPE_P(peername) = IS_STRING; |
|
|
|
} |
|
|
|
|