Permalink
Browse files

Fixed issue #1384: Building warning on Ubuntu 16.04 with GCC 5.4.x

  • Loading branch information...
1 parent a062544 commit ac28d5ff739159f056ec4fe4dd76106f29cb4637 @derickr derickr committed Jan 11, 2017
Showing with 3 additions and 1 deletion.
  1. +3 −1 xdebug_handler_dbgp.c
@@ -263,7 +263,9 @@ static void send_message(xdebug_con *context, xdebug_xml_node *message TSRMLS_DC
xdebug_str *tmp;
tmp = make_message(context, message TSRMLS_CC);
- SSENDL(context->socket, tmp->d, tmp->l);
+ if (SSENDL(context->socket, tmp->d, tmp->l) != tmp->l) {
+ fprintf(stderr, "There was a problem sending %ld bytes on socket %d", tmp->l, context->socket);
+ }
xdebug_str_ptr_dtor(tmp);
}

0 comments on commit ac28d5f

Please sign in to comment.