Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 281 by [email protected]: Cant store \Memcached objects in global variables
http://code.google.com/p/memcached/issues/detail?id=281

What steps will reproduce the problem?
1. construct a \Memcached object, call addServer, and save the variable in a global
2. define a global in a separate namespace, in a class later during runtime
3. call any \Memcached method

What is the expected output? What do you see instead?
Call to the instance's Memcached::getStats() method throws "Memcached constructor was not called" even though the constructor was called. It appears that the global no longer has a valid \Memcached instance

What version of the product are you using? On what operating system?

Ubuntu 11,
libmemcached version => 0.40
latest from apt package php-memcached


Reply via email to