FOSuserBundle and php 5.5

2019-07-04 16:40发布

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.

2条回答
ゆ 、 Hurt°
2楼-- · 2019-07-04 17:20

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)

查看更多
祖国的老花朵
3楼-- · 2019-07-04 17:34

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

extension=php_mbstring.dll

查看更多
登录 后发表回答