php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59024 Can't clone a SolrQuery object
Submitted: 2010-01-08 11:28 UTC Modified: 2010-01-08 19:25 UTC
From: xavier dot schepler at sciences-po dot fr Assigned:
Status: Not a bug Package: solr (PECL)
PHP Version: 5.2.4 OS: ubuntu5.9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xavier dot schepler at sciences-po dot fr
New email:
PHP Version: OS:

 

 [2010-01-08 11:28 UTC] xavier dot schepler at sciences-po dot fr
Description:
------------
I tryed to clone a SolrQuery after encountering another bug using a SolrQuery.

Reproduce code:
---------------
<?php
	$solrClient = new SolrClient(parse_ini_file('bdq/bdq/application/configs/solr.ini'));
	$solrQuery = new SolrQuery;
	clone $solrQuery;

Expected result:
----------------
I expected a copy of the SolrQuery

Actual result:
--------------
( ! ) Warning: Unknown: Invalid SolrParams Index 988. HashTable index does not exist. in Unknown on line 0

( ! ) Warning: Unknown: Internal Error 1008 generated from /tmp/pear/cache/solr-0.9.8/solr_functions_helpers.c 217 solr_fetch_params_entry. The observed error is a possible side-effect of an illegal/unsupported operation in userspace. Please check the documentation and try again later. in Unknown on line 0
( ! ) Fatal error: Unknown: Internal Error 1008 generated from /tmp/pear/cache/solr-0.9.8/php_solr_query.c 110 zim_SolrQuery___destruct. The observed error is a possible side-effect of an illegal/unsupported operation in userspace. Please check the documentation and try again later. in Unknown on line 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-08 19:25 UTC] iekpo@php.net
SolrQuery objects cannot be cloned.

cloning of SolrQuery, SolrModifiableParams and SolrParams is currently not yet supported.

However, there is a plan to do so in the future.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 09:01:23 2020 UTC