Patch phps.patch for solr Bug #61329
Patch version 2012-03-08 18:06 UTC
Return to Bug #61329 |
Download this patch
Patch Revisions:
Developer: daniel@healthycod.in
--- solr_functions_helpers.c 2012-03-08 18:52:03.000000000 +0100
+++ solr_functions_helpers.c 2012-03-08 18:55:15.000000000 +0100
@@ -1035,6 +1035,11 @@
{
return 0;
}
+
+ if (0 == strcmp(response_writer, SOLR_PHP_NATIVE_RESPONSE_WRITER))
+ {
+ return 1;
+ }
if (0 == strcmp(response_writer, SOLR_PHP_SERIALIZED_RESPONSE_WRITER))
{
--- php_solr_response.c 2012-03-08 18:50:05.000000000 +0100
+++ solr-1.0.2/php_solr_response.c 2012-03-08 18:51:11.000000000 +0100
@@ -278,9 +278,9 @@
/* Convert from XML serialization to PHP serialization format */
solr_encode_generic_xml_response(&buffer, Z_STRVAL_P(raw_response), Z_STRLEN_P(raw_response), Z_LVAL_P(parser_mode) TSRMLS_CC);
- } else if (0 == strcmp(Z_STRVAL_P(response_writer), SOLR_PHP_NATIVE_RESPONSE_WRITER)) {
+ } else if (0 == strcmp(Z_STRVAL_P(response_writer), SOLR_PHP_NATIVE_RESPONSE_WRITER) || 0 == strcmp(Z_STRVAL_P(response_writer), SOLR_PHP_SERIALIZED_RESPONSE_WRITER)) {
- /* SOLR_PHP_NATIVE_RESPONSE_WRITER */
+ /* SOLR_PHP_NATIVE_RESPONSE_WRITER && SOLR_PHP_SERIALIZED_RESPONSE_WRITER*/
/* Response string is already in Native PHP serialization format */
solr_string_set(&buffer, Z_STRVAL_P(raw_response), Z_STRLEN_P(raw_response));
|