]> granicus.if.org Git - php/commitdiff
fix arg spec and datatype, follow up on 73594
authorAnatol Belski <ab@php.net>
Sun, 18 Dec 2016 20:16:35 +0000 (21:16 +0100)
committerAnatol Belski <ab@php.net>
Sun, 18 Dec 2016 20:16:35 +0000 (21:16 +0100)
ext/standard/dns_win32.c

index f28977ab6a93056447d9d9be9dcb8204d587f0ce..17f2e5434e9d76a414e41749eb21b181971a753a 100644 (file)
@@ -347,12 +347,12 @@ PHP_FUNCTION(dns_get_record)
 {
        char *hostname;
        size_t hostname_len;
-       long type_param = PHP_DNS_ANY;
+       zend_long type_param = PHP_DNS_ANY;
        zval *authns = NULL, *addtl = NULL;
        int type, type_to_fetch, first_query = 1, store_results = 1;
        zend_bool raw = 0;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lz!z!b",
+       if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lz/!z/!b",
                        &hostname, &hostname_len, &type_param, &authns, &addtl, &raw) == FAILURE) {
                return;
        }