php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58977 Erro when cloning SolrModifiableParams object
Submitted: 2009-12-04 18:46 UTC Modified: 2009-12-05 00:39 UTC
From: felipe@php.net Assigned: iekpo (profile)
Status: Closed Package: solr (PECL)
PHP Version: 5_3 SVN-2009-12-04 (dev) OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: felipe@php.net
New email:
PHP Version: OS:

 

 [2009-12-04 18:46 UTC] felipe@php.net
Description:
------------
See below.

Reproduce code:
---------------
<?php

$x = new SolrModifiableParams;
clone $x;


Expected result:
----------------
No error.

Actual result:
--------------
Warning: Unknown: Invalid SolrParams Index 25144. HashTable index does not exist. in Unknown on line 0

Warning: Unknown: Internal Error 1008 generated from /home/felipe/dev/pecl/solr/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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-05 00:39 UTC] iekpo@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Thanks Felipe for pointing this out. Good catch!

Correctly cloning of SolrParams instances is not suppported.

The paramater values in the hash table has to be copied over to the new object and that work is not yet complete.

I have not really started it yet.

Until the work is complete and tested successfully, cloning of SolrParams instances will not be supported.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 06:03:41 2022 UTC