FOSuserBundle and php 5.5

﹥>﹥吖頭↗ 提交于 2019-12-12 15:32:24

问题


Ive searched the PHPuserBundle documentation and cannot find any reference to php version support issues.

Ive just upgraded my php version to 5.6 (using XAMPP) and I get the following error when sending to login_check.

Attempted to call function "mb_convert_case" from namespace "FOS\UserBundle\Util

Is it best to stick with 5.4 for now? I tried 5.5 and got the same error. My only reason for wanting to upgrade was to stay up to date, so its not life or death but Im curious.

thanks.


回答1:


Try to uncomment/add this line in your php.ini:

extension=php_mbstring.dll




回答2:


Latest version ("friendsofsymfony/user-bundle": "2.0.*@dev") of FOSUSerBundle works with PHP>=5.3.2.

You can check this in packagist.org - https://packagist.org/packages/friendsofsymfony/user-bundle

If you are working under Windows then you must uncomment php_mbstring.dll in php.ini file. Check this answer - mb_convert_case undefined function (Symfony2 FOS/UserBundle)



来源:https://stackoverflow.com/questions/26955570/fosuserbundle-and-php-5-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!