New Memcached () when quoted trying to clone an Uncloneable object of class Memcached

Source: Internet
Author: User
Tags php memcached
Memcache is installed on the service side of memcached-1.4.5.tar.gz
My client has installed
Memcached-2.1.0.tgz
Libmemcached-1.0.18.tar.gz
Now with Phpinfo can see already installed memcached
Memcached Support Enabled
Version 2.1.0
libmemcached version 1.0.18
Session Support Yes
Igbinary Support Yes
JSON Support No

Directive Local Value Master value
Memcached.compression_factor 1.3 1.3
Memcached.compression_threshold 20480 20480
Memcached.compression_type Fastlz Fastlz
Memcached.serializer igbinary Igbinary
Memcached.sess_binary No value No value
Memcached.sess_lock_wait 150000 150000
Memcached.sess_locking 1 1
Memcached.sess_prefix Memc.sess.key. Memc.sess.key.
But when the code calls new Memcached (), the trying to clone an Uncloneable object of class Memcached


Reply to discussion (solution)

Online Waiting for the master

You try $memcache = new Memcache;

According to your method, the report class ' Memcache ' not found, I installed is memcached,
Now the situation is I new, reported trying to the clone an Uncloneable object of Class Memcached, and then I tried to static call, the result said Non-static Method Memcached::get () CA Nnot is called statically, assuming $this from incompatible context. Tangled in ....

Is there a master with PHP memcached

Knot paste, did not solve the problem, with 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.