socket_write() should just use the standard socket error macro so that errors will be consistent if the macro ever changes

This commit is contained in:
Jason Greene 2002-05-02 16:45:22 +00:00
parent edba077000
commit 89c59569ba

View 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;
}