diff options
Diffstat (limited to 'ext/sockets/sockets.c')
-rw-r--r-- | ext/sockets/sockets.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index e9222ce71b..be4288f498 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -720,8 +720,7 @@ PHP_FUNCTION(socket_write) #endif if (retval < 0) { - SOCKETS_G(last_error) = php_sock->error = errno; - php_error(E_WARNING, "%s() unable to write to socket %d [%d]: %s", get_active_function_name(TSRMLS_C), php_sock->bsd_socket, errno, php_strerror(errno)); + PHP_SOCKET_ERROR(php_sock, "unable to write to socket", errno); RETURN_FALSE; } |