static function GetDefaultStorage() { $r = GetDefaultStorage(); $this->_cPtr = $r; return $this; }
static function GetDefaultStorage() { $r = GetDefaultStorage(); if (is_resource($r)) { $c = substr(get_resource_type($r), strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3); if (!class_exists($c)) { return new Storage($r); } return new $c($r); } return $r; }