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
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:
20 - 16 = ?
Subscribe to this entry?

 
 [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: Tue Jan 25 04:03:37 2022 UTC