Commits

Ruslan Osmanov committed ee4e1b7

Fix

  • Participants
  • Parent commits 1c015d2

Comments (0)

Files changed (2)

File classes/buffer_event.c

 	}
 
 	if (family & ~(AF_UNSPEC | AF_INET | AF_INET6 | AF_UNIX)) {
-		php_error_docref(NULL TSRMLS_CC, E_ERROR,
+		php_error_docref(NULL TSRMLS_CC, E_WARNING,
 				"Unsupported address family: %ld", family);
 		RETURN_FALSE;
 	}
 	} else {
 		/* Numeric addresses only. Don't try to resolve hostname. */
 		if (evutil_parse_sockaddr_port(addr, &sa, (int *) &sa_len)) {
-			php_error_docref(NULL TSRMLS_CC, E_ERROR,
+			php_error_docref(NULL TSRMLS_CC, E_WARNING,
 					"Failed parsing address: the address is not well-formed, "
 					"or the port is out of range");
 			RETURN_FALSE;
 ZEND_BEGIN_ARG_INFO_EX(arginfo_bufferevent_connect, 0, 0, 1)
 	ZEND_ARG_INFO(0, addr)
 	ZEND_ARG_INFO(0, sync_resolve)
+	ZEND_ARG_INFO(0, family)
 ZEND_END_ARG_INFO();
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_bufferevent_socket_connect_hostname, 0, 0, 3)