4

Some hint on how to take an php 3 old code and transform it to php 7.3 without rewrite all the class ...

Like an auto converters or i dont know ?

Comments
  • 2
    Sounds like a wk148 problem
  • 0
    @steaksauce sorry wk1737283 what ?
  • 1
    @jak645 weekly rant this week is about technical debt
  • 7
    1. Read the documentation for both and changelogs.
    2. Go through every single line of the code and modify accordingly.
  • 0
  • 6
    php3 -> 7.3?!

    Rewrite time.
  • 1
    @Root FATAL ERROR syntax error, unexpected '->' (T_OBJECT_OPERATOR) on line number 2
  • 1
    @alexbrooklyn Oh crap! Time to rewrite it in Ruby. 😉
  • 2
    php 3? Are you sure it isn't 5.3? But yeah, there's no such thing. You'll have to rewrite everything.

    Php handles things very differently now than it did before. You can no longer for example, use undefined variables. And that's something that was heavily abused in 5.3 inside conditional expressions.
  • 0
    @nitnip you are right my boss talkshit to me XD its 5.3... this guy know noting in programmation and is my mentor =_=
  • 0
    @jak645 I knew it! Buuut anyways, that spells bad news for you since you can't really upgrade 5.3 to 7.x without breaking everything in the process.

    You'll have to rewrite those classes from scratch.
Add Comment