Skip to content

Commit f3c19b8

Browse files
committed
Remove deprecated xmlIndentTreeOutput
Fixes #97
1 parent 7c91827 commit f3c19b8

3 files changed

Lines changed: 0 additions & 21 deletions

File tree

src/php_solr_client.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ PHP_METHOD(SolrClient, addDocument)
714714

715715
solr_add_doc_node(root_node, doc_entry);
716716

717-
xmlIndentTreeOutput = 1;
718717
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
719718

720719
/* The XML request we are sending to Solr */
@@ -879,8 +878,6 @@ PHP_METHOD(SolrClient, addDocuments)
879878
/* We are done with the doc_entries pointer */
880879
SOLR_FREE_DOC_ENTRIES(doc_entries);
881880

882-
xmlIndentTreeOutput = 1;
883-
884881
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
885882

886883
/* The XML request we are sending to Solr */
@@ -1067,8 +1064,6 @@ PHP_METHOD(SolrClient, deleteById)
10671064
xmlNewChild(root_node, NULL, (xmlChar *) "id", escaped_id_value);
10681065
xmlFree(escaped_id_value);
10691066

1070-
xmlIndentTreeOutput = 1;
1071-
10721067
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
10731068

10741069
/* The XML request we are sending to Solr */
@@ -1169,8 +1164,6 @@ end_doc_ids_loop :
11691164
return;
11701165
}
11711166

1172-
xmlIndentTreeOutput = 1;
1173-
11741167
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
11751168

11761169
/* The XML request we are sending to Solr */
@@ -1240,8 +1233,6 @@ PHP_METHOD(SolrClient, deleteByQuery)
12401233
xmlNewChild(root_node, NULL, (xmlChar *) "query", escaped_query_value);
12411234
xmlFree(escaped_query_value);
12421235

1243-
xmlIndentTreeOutput = 1;
1244-
12451236
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
12461237

12471238
/* The XML request we are sending to Solr */
@@ -1517,8 +1508,6 @@ end_doc_queries_loop :
15171508
return;
15181509
}
15191510

1520-
xmlIndentTreeOutput = 1;
1521-
15221511
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
15231512

15241513
/* The XML request we are sending to Solr */
@@ -1593,8 +1582,6 @@ PHP_METHOD(SolrClient, optimize)
15931582
return;
15941583
}
15951584

1596-
xmlIndentTreeOutput = 1;
1597-
15981585
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
15991586

16001587
/* The XML request we are sending to Solr */
@@ -1662,8 +1649,6 @@ PHP_METHOD(SolrClient, commit)
16621649
return;
16631650
}
16641651

1665-
xmlIndentTreeOutput = 1;
1666-
16671652
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
16681653

16691654
/* The XML request we are sending to Solr */
@@ -1714,8 +1699,6 @@ PHP_METHOD(SolrClient, rollback)
17141699
return;
17151700
}
17161701

1717-
xmlIndentTreeOutput = 1;
1718-
17191702
xmlDocDumpFormatMemoryEnc(doc_ptr, &request_string, &size, "UTF-8", format);
17201703

17211704
/* The XML request we are sending to Solr */

src/php_solr_document.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ static void solr_serialize_document_object(HashTable *document_fields, xmlChar *
220220

221221
} /* SOLR_HASHTABLE_FOR_LOOP(document_fields) */
222222

223-
xmlIndentTreeOutput = 1;
224-
225223
xmlDocDumpFormatMemoryEnc(doc_ptr, buffer, size, "UTF-8", format);
226224

227225
xmlFreeDoc(doc_ptr);

src/php_solr_params.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ static int solr_serialize_solr_params_object(xmlChar **serialized, int *size, zv
183183
}
184184
}
185185

186-
xmlIndentTreeOutput = 1;
187-
188186
xmlDocDumpFormatMemoryEnc(doc_ptr, serialized, size, "UTF-8", format);
189187
xmlFreeDoc(doc_ptr);
190188

0 commit comments

Comments
 (0)