php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61329 Support PHP Serialized Response Writer (phps)
Submitted: 2012-03-08 18:05 UTC Modified: 2015-01-11 20:47 UTC
From: daniel at healthycod dot in Assigned: omars (profile)
Status: Closed Package: solr (PECL)
PHP Version: 5.3.10 OS: all
Private report: No CVE-ID: None
 [2012-03-08 18:05 UTC] daniel at healthycod dot in
Description:
------------
version 1.0.2 is missing the "SOLR_PHP_SERIALIZED_RESPONSE_WRITER". the constant is defined but there is no usage of the "phps" response format, only for the "phpnative".


Test script:
---------------
$solrClient = new SolrClient(array(
  'hostname' => "localhost",
  'port'     => 8983,
  'path'     => 'solr/core0',
  'wt'       => 'phps'
);
$query = new SolrQuery();
$solr->query("*:*");

Expected result:
----------------
no warning and parsed result using phps sourc.

Actual result:
--------------
Warning: Unsupported response writer phps. This value will be ignored.

Patches

phps.patch (last revision 2012-03-08 18:06 UTC by daniel at healthycod dot in)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-18 23:12 UTC] felipe@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: iekpo
 [2012-06-18 23:12 UTC] felipe@php.net
-Status: Analyzed +Status: Assigned
 [2012-10-26 15:48 UTC] eric dot caron at gmail dot com
I took a different route in solving this bug (available on https://github.com/ecaron/php-pecl-solr). Since "phpnative" got a "wontfix" (https://issues.apache.org/jira/browse/SOLR-1967) I don't think that should be in the codebase and confusing the setup. We could remap phpnative to phps and throw a NOTICE, but I'm not sure there are any users actually using this.

Also, do you notice that doing this sends an array rather than a SolrObject - any insight into why that is happening?
 [2014-06-07 13:22 UTC] omars@php.net
-Assigned To: iekpo +Assigned To: omars
 [2015-01-10 22:01 UTC] omars@php.net
-Summary: missing: serialized response writer +Summary: Support PHP Serialized Response Writer (phps) -Type: Bug +Type: Feature/Change Request
 [2015-01-11 20:47 UTC] omars@php.net
-Status: Assigned +Status: Closed
 [2015-01-11 20:47 UTC] omars@php.net
Implemented on master/2.1.0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 18:01:34 2024 UTC