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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 + 48 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC