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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 08:01:27 2024 UTC