intl and icu configuration

后端 未结 2 1676
没有蜡笔的小新
没有蜡笔的小新 2021-01-23 23:32

I\'ve been working on a local development machine running Ubuntu 12 developing a Symfony2.3.5 application.

All works well, until I uploaded the code and cam

相关标签:
2条回答
  • 2021-01-24 00:13

    For me worked installing symfony/intl

    "symfony/intl": "2.5.5",
    
    php composer.phar update symfony/intl
    
    0 讨论(0)
  • 2021-01-24 00:17

    Symfony 2.3 requires the intl extension to be version >= 4.0 ( a version greater than 4.4 at best ) because of it's dependency to the symfony/intl component.

    Composer will download different versions of symfony/intl and lock these in your composer.lock depending on your development ICU version.

    This means if you develop on a system with ICU greater than 4.4 you won't be able to install on a server with ICU < 4.4.

    Please read the documentation chapter ICU and Deployment Problems.

    Update your intl extension as suggested in my answer here:

    sudo aptitude install php5-intl 
    

    ... or add

    "require: {
        "symfony/icu": "1.0.*"
    }
    

    to your composer.json.

    0 讨论(0)
提交回复
热议问题