﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,appname,phpversion,exts,sapi,probability,blockedby,blocking,pending
199,PHP wrapper object code,Shnapoo,moo,"Hi there,

I was unable to log into the website (although giving right password for sure). Just wanted to inform you of a tiny bug in the XCache wrapper object code provided here.

It currently doesn't handle its singleton correctly. When calling xcache::getInstance() you get a new instance each time, because the class doesn't store the reached out instance. 

Bad version:
{{{
public static function getInstance() 
{
    return (self::$xcobj instanceof XCache) ? self::$xcobj : new XCache; 
}
}}}

Fixed version should look like:
{{{
public static function getInstance() 
{
    if( !(self::$xcobj instanceof XCache) ){
        self::$xcobj = new XCache;
    }
    return self::$xcobj; 
}
}}}
",defect,closed,major,1.3.0,website,1.2.1,fixed,,,,,,Irrelevant,,,,0
