php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58877 Error when trying to clone object
Submitted: 2009-10-03 18:27 UTC Modified: 2009-10-03 22:04 UTC
From: felipe@php.net Assigned: iekpo (profile)
Status: Closed Package: solr (PECL)
PHP Version: 5_3 CVS-2009-10-03 (dev) OS:
Private report: No CVE-ID: None
 [2009-10-03 18:27 UTC] felipe@php.net
Description:
------------
See below.

Reproduce code:
---------------
$ sapi/cli/php -r '$x = new solrclient(array()); $y = clone $x;'

Warning: Unknown: Invalid SolrClient Index 31253. HashTable index does not exist. in Unknown on line 0



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-03 19:32 UTC] israelekpo at gmail dot com
I am currently working on this.
 [2009-10-03 22:04 UTC] israelekpo at gmail dot com
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.

This has been fixed in svn revision 289159.

SolrClient objects were never designed to be cloned.

A SolrIllegalOperation exception is now thrown whenever an attempt is made to clone a SolrClient instance.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC