/**
  * Returns a PHP_CompatInfo configuration object
  *
  * @param string $filename The configuration file name
  *
  * @return PHP_CompatInfo_Configuration
  * @throws PHP_CompatInfo_Exception
  */
 public static function getInstance($filename)
 {
     $realpath = realpath($filename);
     if ($realpath === false) {
         throw new PHP_CompatInfo_Exception(sprintf('Could not read "%s".', $filename));
     }
     if (!isset(self::$instance)) {
         self::$instance = new PHP_CompatInfo_Configuration($realpath);
     }
     return self::$instance;
 }