From: Jason Greene Date: Thu, 2 May 2002 16:45:22 +0000 (+0000) Subject: socket_write() should just use the standard socket error macro so that errors will... X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89c59569ba5dcfb51a6b51e13c25a47d77055ddd;p=php socket_write() should just use the standard socket error macro so that errors will be consistent if the macro ever changes --- 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; }