]> granicus.if.org Git - php/commitdiff
socket_write() should just use the standard socket error macro so that errors will...
authorJason Greene <jason@php.net>
Thu, 2 May 2002 16:45:22 +0000 (16:45 +0000)
committerJason Greene <jason@php.net>
Thu, 2 May 2002 16:45:22 +0000 (16:45 +0000)
ext/sockets/sockets.c

index e9222ce71bee299b6c21ea52caabe4bf633058e2..be4288f498ed27f01bfb02d8e26dca1607637547 100644 (file)
@@ -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;
        }