/** * Fetches the version of the latest stable release * * @link http://framework.zend.com/download/latest * @return string */ public static function getLatest() { if (null === self::$lastestVersion) { self::$lastestVersion = 'not available'; $handle = fopen('http://framework.zend.com/api/zf-version', 'r'); if (false !== $handle) { self::$lastestVersion = stream_get_contents($handle); fclose($handle); } } return self::$lastestVersion; }