致命错误:ZF2 beta5骨架应用程序找不到类'Locale'

Max*_*Max 14 beta zend-framework2

我刚刚按照给定的说明安装了ZF2beta5应用程序:

$ git clone git://github.com/zendframework/ZendSkeletonApplication.git ./
Cloning into '.'...
remote: Counting objects: 1494, done.
remote: Compressing objects: 100% (660/660), done.
remote: Total 1494 (delta 681), reused 1373 (delta 581)
Receiving objects: 100% (1494/1494), 397.42 KiB | 357 KiB/s, done.
Resolving deltas: 100% (681/681), done.

$ php composer.phar install
Installing dependencies
  - Installing zendframework/zendframework (dev-master)
    Cloning d6b0afe61149c6d0669743aab5c73285c42cd0db

zendframework/zendframework suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features)
Writing lock file
Generating autoload files
Run Code Online (Sandbox Code Playgroud)

当我访问该应用程序时,我收到以下错误:

致命错误:第220行的./vendor/zendframework/zendframework/library/Zend/I18n/Translator/Translator.php中找不到类"区域设置"

我没有Doctrine按照建议尝试安装(因为我最后不想使用Doctrine).

有人知道如何解决这个问题吗?

Rob*_*len 51

您需要安装intlPHP扩展.

对于基于APT的系统,请尝试:sudo apt-get install php5-intl
对于基于YUM的系统,请尝试:sudo yum install php-intl
对于OS X,请从本文开始,但请检查您拥有的PHP版本并下载正确的源代码.

您可能需要在之后重新启动PHP或Web服务器.

  • 然后重新启动`php`. (4认同)