TryingtocloneanuncloneableobjectofclassMemcached ()

Source: Internet
Author: User
When new Memcached () is displayed in phpinfo, Trying to clone an uncloneable object of class Memcached is reported.
The service side of memcacheis installed with memcached-1.4.5.tar.gz.
My client has been installed
Memcached-2.1.0.tgz
Libmemcached-1.0.18.tar.gz
Now you can see that memcached has been installed in phpinfo.
Memcached supportenabled
Version 2.1.0
Libmemcached version 1.0.18
Session support yes
Igbinary support yes
Json support no

DirectiveLocal ValueMaster Value
Memcached. compression_factor1.31.3
Memcached. compression_threshold2048020133
Memcached. compression_typefastlzfastlz
Memcached. serializerigbinaryigbinary
Memcached. sess_binaryno valueno value
Memcached. sess_lock_wait150000150000
Memcached. sess_locking11
Memcached. sess_prefixmemc.sess.key.memc.sess.key.
However, when the code calls new Memcached (), it reports Trying to clone an uncloneable object of class Memcached.
------ Solution --------------------
Try $ memcache = new Memcache;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.