Ejemplo n.º 1
0
 /**
  * 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;
 }