]> granicus.if.org Git - php/commitdiff
typo in var name
authorPierre Joye <pierre.php@gmail.com>
Wed, 7 May 2014 09:17:03 +0000 (11:17 +0200)
committerPierre Joye <pierre.php@gmail.com>
Wed, 7 May 2014 09:17:03 +0000 (11:17 +0200)
ext/standard/dns_win32.c

index 0aa23599d21176390904b39ae1369fed4cbadef0..3e691cceca4e79a20770a32ef13c954fe7826695 100644 (file)
@@ -154,9 +154,10 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
                return;
        }
 
-       ALLOC_INIT_ZVAL(*subarray);
+/*     ALLOC_INIT_ZVAL(*subarray);
        array_init(*subarray);
-
+*/
+       ZVAL_NEW_ARR(*subarray);
        add_assoc_string(*subarray, "host", pRec->pName);
        add_assoc_string(*subarray, "class", "IN");
        add_assoc_long(*subarray, "ttl", ttl);
@@ -229,7 +230,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
                                        add_next_index_stringl(entries, data_txt->pStringArray[i], len);
                                        txt_dst += len;
                                }
-                               tct->len = txt_dst - txt->val;
+                               txt->len = txt_dst - txt->val;
                                add_assoc_str(*subarray, "txt", txt);
                                add_assoc_zval(*subarray, "entries", entries);
                        }