-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** ./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