summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index 852ebaab22..5f34909c10 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -215,7 +215,7 @@ static zend_string *php_gethostbyaddr(char *ip)
PHP_FUNCTION(gethostbyname)
{
char *hostname;
- int hostname_len;
+ size_t hostname_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &hostname_len) == FAILURE) {
return;
@@ -230,7 +230,7 @@ PHP_FUNCTION(gethostbyname)
PHP_FUNCTION(gethostbynamel)
{
char *hostname;
- int hostname_len;
+ size_t hostname_len;
struct hostent *hp;
struct in_addr in;
int i;
@@ -345,7 +345,7 @@ PHP_FUNCTION(dns_check_record)
#endif
u_char ans[MAXPACKET];
char *hostname, *rectype = NULL;
- int hostname_len, rectype_len = 0;
+ size_t hostname_len, rectype_len = 0;
int type = T_MX, i;
#if defined(HAVE_DNS_SEARCH)
struct sockaddr_storage from;
@@ -753,7 +753,7 @@ static u_char *php_parserr(u_char *cp, u_char *end, querybuf *answer, int type_t
PHP_FUNCTION(dns_get_record)
{
char *hostname;
- int hostname_len;
+ size_t hostname_len;
long type_param = PHP_DNS_ANY;
zval *authns = NULL, *addtl = NULL;
int type_to_fetch;
@@ -965,7 +965,7 @@ PHP_FUNCTION(dns_get_record)
PHP_FUNCTION(dns_get_mx)
{
char *hostname;
- int hostname_len;
+ size_t hostname_len;
zval *mx_list, *weight_list = NULL;
int count, qdc;
u_short type, weight;