function __construct() { global $config_vars; $shared_memory = new System_SharedMemory(); if (OPERATING_SYSTEM == 'WIN') { //$this->obj = &System_SharedMemory::Factory( 'File', array('tmp' => $config_vars['cache']['dir'] ) ); $this->obj = $shared_memory->Factory('File', array('tmp' => $config_vars['cache']['dir'])); } else { //$this->obj = &System_SharedMemory::Factory( 'File', array('tmp' => $config_vars['cache']['dir'] ) ); $this->obj = $shared_memory->Factory('File', array('tmp' => $config_vars['cache']['dir'])); ////$this->obj = &System_SharedMemory::Factory( 'Systemv', array( 'size' => $size ) ); //Run into size issues all the time. } return TRUE; }