Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:43
Show Gist options
  • Save doctrinebot/7fcdfef6591af08a08d4 to your computer and use it in GitHub Desktop.
Save doctrinebot/7fcdfef6591af08a08d4 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-297 - https://github.com/doctrine/doctrine2/issues/3734
*** ./XcacheCache.php 2010-01-21 12:41:34.000000000 +0300
--- ./XcacheCacheFixed.php 2010-02-02 00:58:20.000000000 +0300
***************
*** 39,45 ****
*/
protected function _doFetch($id)
{
! return $this->_doContains($id) ? xcache_get($id) : false;
}
/**
--- 39,45 ----
*/
protected function _doFetch($id)
{
! return $this->_doContains($id) ? unserialize(xcache_get($id)) : false;
}
/**
***************
*** 55,61 ****
*/
protected function _doSave($id, $data, $lifeTime = false)
{
! return xcache_set($id, $data, $lifeTime);
}
/**
--- 55,61 ----
*/
protected function _doSave($id, $data, $lifeTime = false)
{
! return xcache_set($id, serialize($data), $lifeTime);
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment