douxing1353 2016-01-18 07:54
浏览 40

从5.3迁移时要使用哪个PHP版本?

I am working on a project which is in php 5.3+. I need to create a separate Api which is to be deployed on same server for which i am using the Symfony2.

As i need to deploy new api on same server i want to use php 5.5+ version Now i need to upgrade my old project to new version of php and mysql as the server currently is on 5,3+. I tried the php 5.4+ and mysql 5.5+ on my local system the project works fine, but when i switched to php 5.5+ it shows me error that states mysql_connect is Deprecated.

I checked on several sites and came across a solution where i can skip the deprecated message on php 5.5 + via doing some ini settings.

Now my main concern is whether is it a right solution to migrate to php5.5+ and start new feature development out there As i need to use 5.5+ so that i wont face same deprecated issue with any other thing in future in new Apior should i migrate to 5.4+.

Kindly Reply

  • 写回答

3条回答 默认 最新

  • dtlab08822 2016-01-18 08:05
    关注

    The question I would ask myself if I were you is how long I would want to maintain a code base with deprecated features... my suggestion is to migrate to PHP 7 (or 5.6 minimum), upgrade projects and start new feature developments... will pay better on the long run.

    评论

报告相同问题?