#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2014
    Posts
    10
    Rep Power
    0

    PHP version conversion


    Dear All,

    I have some snippet of code that is written for PHP 7.1.
    The same is to be run on PHP 5.3
    Can anyone help?

    Thanks in advance.

    Regards,
    Anirban
  2. #2
  3. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,885
    Rep Power
    9646
    Time to upgrade.

    No really. You are hurting yourself by remaining on 5.3. In fact on any 5.x version. You should be on at least 7.0, but since your code is made for 7.1 you should start there.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2014
    Posts
    10
    Rep Power
    0
    Many thanks for your response.

    Unfortunately, at the present moment I have some restrictions on upgrading to a higher version, which I will surely do in the next couple of months. However, for the time being I am trying to convert a library function written for version 7.1 to version 5.3

    Regards.
  6. #4
  7. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,885
    Rep Power
    9646
    You'll probably have a hard time of it. The two versions are very different. 7.1 supports a lot of stuff that 5.3 does not.

    Just try running it. What errors do you see and what is the code they refer to?

IMN logo majestic logo threadwatch logo seochat tools logo