private static function getVarKey($key) { if (is_int($key)) { return $key; } if (is_null(self::$keyMap)) { self::$keyMap = array('keyMap' => 1); } if (!isset(self::$keyMap[$key])) { self::$keyMap[$key] = count(self::$keyMap) + 1; } return self::$keyMap[$key]; }
public function __construct() { self::$SHMhandle = shm_attach(ftok(__FILE__, 'Module Here'), 67108864); }