]> granicus.if.org Git - php/commitdiff
port dns_win32
authorPierre Joye <pierre.php@gmail.com>
Tue, 13 May 2014 05:06:27 +0000 (07:06 +0200)
committerPierre Joye <pierre.php@gmail.com>
Tue, 13 May 2014 05:06:27 +0000 (07:06 +0200)
ext/standard/dns_win32.c

index 3e691cceca4e79a20770a32ef13c954fe7826695..5d00b07af0fe05772f46695974d20db7f7f03a65 100644 (file)
@@ -154,9 +154,6 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
                return;
        }
 
-/*     ALLOC_INIT_ZVAL(*subarray);
-       array_init(*subarray);
-*/
        ZVAL_NEW_ARR(*subarray);
        add_assoc_string(*subarray, "host", pRec->pName);
        add_assoc_string(*subarray, "class", "IN");
@@ -215,9 +212,8 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
 
                                add_assoc_string(*subarray, "type", "TXT");
                                
-                               ALLOC_INIT_ZVAL(entries);
-                               array_init(entries);
-                               
+                               ZVAL_NEW_ARR(entries);
+
                                for (i = 0; i < count; i++) {
                                        txt_len += strlen(data_txt->pStringArray[i]) + 1;
                                }