@@ -703,7 +703,7 @@ PHP_METHOD(SolrClient, addDocument)
703703
704704 if (commitWithin > 0L )
705705 {
706- auto char commitWithinBuffer [32 ];
706+ char commitWithinBuffer [32 ];
707707
708708 memset (commitWithinBuffer , 0 , sizeof (commitWithinBuffer ));
709709
@@ -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 */
@@ -854,7 +853,7 @@ PHP_METHOD(SolrClient, addDocuments)
854853
855854 if (commitWithin > 0L )
856855 {
857- auto char commitWithinBuffer [32 ];
856+ char commitWithinBuffer [32 ];
858857
859858 memset (commitWithinBuffer , 0 , sizeof (commitWithinBuffer ));
860859
@@ -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 */
0 commit comments