23
rim01
7y

Try migrate php5.3 with deprecated functions to php7 ..

Comments
  • 1
    As I remember there are some really fucked up functions with same names but order of arguments changed.
    Really feel you😪
  • 0
    To be honest just letting it throw the exception helped to get through roughly ~95% of changes.
  • 0
    rly soon moving from 5.6 to 7.1 in prod. lets say im not looking forward to it
  • 0
    @ljiech believe me it's worth it, its such a blessing to finally be able to use php 7
  • 1
    I once migrate php 5.6 to 7.1 then give up, decide to keep the old version. And some times later rewrite everything with golang. Damn that was some relieve
  • 0
    Been there, done that. PITA
  • 0
    That shit fucked up my project! Had to redo most of the Shit!
  • 0
    5.6 to 7 should not be that hard. Just fix all the deprecation notices from 5.6 while running in production or tests of you have those. That should solve 98 to 100% of your problems.
    As for PHP 7 it's great unfortunately I'm the only one really using it at the moment.
  • 1
    @hjk101 I'm using it as well, high five!
  • 1
    @RAZERZ I meant here at work. I really love the strict type checking. Basically if the IDE says it's fine it works correctly (this is one of the joys of working with golang. If it compiles your likely golden)
    Unfortunately we do a lot of Drupal 7 development so I try to make classes that are PHP 7 but with all the hook stuff going on it's just ugly anyway.
  • 3
    I use PHP7 for syntax / error checking but projects are currently 5.6 (mostly).

    1 old graveyard is back on php5.1 😰
    I can’t wait for the day thats got to be updated to 7 💩💩💩💩
Add Comment