You are here

function memcache_clone in Memcache API and Integration 5

Same name in this branch
  1. 5 memcache.db.inc \memcache_clone()
  2. 5 memcache.inc \memcache_clone()
Same name and namespace in other branches
  1. 6 memcache.db.inc \memcache_clone()
  2. 6 memcache.inc \memcache_clone()

Provide a substitute clone() function for PHP4. This is a copy of drupal_clone because common.inc isn't included early enough in the bootstrap process to be able to depend on drupal_clone.

2 calls to memcache_clone()
cache_set in ./memcache.db.inc
Store data in the persistent cache.
cache_set in ./memcache.inc
Store data in memcache.

File

./memcache.inc, line 118

Code

function memcache_clone($object) {
  return version_compare(phpversion(), '5.0') < 0 ? $object : clone $object;
}