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