cumulus13 / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Cant store \Memcached objects in global variables #281

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by sma...@gmail.com on 22 Jul 2012 at 6:21

GoogleCodeExporter commented 9 years ago
Brian responded to this on the mailing list, I think? This is a libmemcached 
bug, not memcached proper so I'm closing it out, sorry!

Original comment by dorma...@rydia.net on 24 Jul 2012 at 7:14