*/
function decode( $blob ) {
if ( !is_string( $blob ) ) {
- return array( 0, null );
+ return array( null, 0 );
} else {
return array(
unserialize( substr( $blob, 11 ) ),
function get( $key ) {
wfProfileIn( __METHOD__ );
+ wfDebug( __METHOD__."($key)\n" );
$handle = $this->getReader();
if ( !$handle ) {
return null;
function set( $key, $value, $exptime=0 ) {
wfProfileIn( __METHOD__ );
+ wfDebug( __METHOD__."($key)\n" );
$blob = $this->encode( $value, $exptime );
$handle = $this->getWriter();
if ( !$handle ) {