1.3.5 and php 8

Forum
Last Post
Threads / Messages

Milly Money

Pet-Sim.Online
Staff member
Dev Staff
Joined
Jan 27, 2010
Messages
555
Points
28
Mysidian Dollar
28,519
Does anyone know if Famer ever upgraded as was said a few years ago?

Following Mys v1.3.5's release, we are feature-completed for Mys v1.3.x series. I plan to make a new minor version Mys v1.3.6 to address some concerns such as PHP 7/8 compatibility, which is a very demanded feature since Mys v1.3.x has been compatible with PHP 5.3-5.6 only.


Is 1.3.5 compatible with php 8?

There was going to be an update for this, did that ever happen?
 
The latest version Mys v1.3.6 is compatible with PHP 7/8.


oh I know. If we wanted to upgrade 1.3.4 to 8 compliant - to 1.3.6, what are the files that would need changed? Would that be too much to do? I know at one point years ago you had said you'd help those of us with heavily modded sites ...

It would help to know the things that must be changed :)
 
Actually if all you need is PHP 7/8 compatibility but not the new features, you only need to update names of some class files. Mys 1.3.2-1.3.5 used class names like Int and String which later became reserved words in PHP 7, hence where the incompatibility came from. Renaming them to something like MysInt and MysString should be sufficient.
 
Actually if all you need is PHP 7/8 compatibility but not the new features, you only need to update names of some class files. Mys 1.3.2-1.3.5 used class names like Int and String which later became reserved words in PHP 7, hence where the incompatibility came from. Renaming them to something like MysInt and MysString should be sufficient.

Thats very helpful to know!

Which class files would that be?

I am guessing you could go through and just do a replace for these words?
 
All of them? Some? Can we get a guide in how to upgrade our older sites? It's been a very long time we have needed help on this :)
 
Derp, edit, yes use search and replace but don't replace all at once, make sure some int and string references are actually being used as a class and not being used as primitives
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,306
Messages
33,297
Members
1,611
Latest member
razorbladekitty
BETA

Latest Threads

Top