Does changing PHP version make irreversible changes to website files/database?
-
Dear wordpress experts??</img>,
Due to some frustrated past bad experience in breaking my website (due to various reasons/mistakes) & then unable to solve them; I generally tend to worry/overthinking??</img> when do any major changes. So asking this questions.
1) Does changing PHP version make irreversible changes to website files or database?
??Due to common sense, I always make full site back up before any PHP change. Also I know that the wp/theme/plugin must be compatible with the PHP to works without any issue. But I have a worry/doubt that changing PHP might make some irreversible changes in my wordpress files & database.
For example, suppose now I have php 7.4; I have updated all wp/theme/plugins; then after a back up I change its PHP to 8.1. I used to think think that this will make some irreversible changes in my files/database. Then later due to any reason, I wanted to change its PHP to 7,4 or 8.2 or any more future upgraded version. Then I may get into problems due to previous irreversible changes.
??I guess my worry are wrong. PHP changes are server side things. And It has no relationship with my files/database. If my wp/theme/plugins (aka files & database) support particular PHP; then I can switch to anyone anytime.
For example, suppose now my website is PHP 8.1. Later I discovered some php related error logs in my error log file. Then realized I did a mistake in my research & found certain important plugin does not support php 8.1, rather 8.0 or still 7.4. So I have to switch PHP In that case, after a back up, can I safely switch to older php without any issue (I think in 99% case there will be no issue as PHP does not make irreversible changes)
?</img>So my question is, Am I right or wrong PHP version make irreversible changes ?
2) Does latest version PHP are always better?
I want to use latest version PHP & currently using PHP 8.1 (Switched from PHP 8.2 after some WP experts’ suggestion).
I used to think that (Main culprit is google’s article from inexperienced authors??), using latest are always better. After checking all my currently used theme/plugins are latest version PHP compatible, I used PHP 8.2 in my websites.
But after getting few php Deprecated errors, some WP experts recommend me to not use PHP 8.2 as this is not fully stable yet, rather use PHP 8.1. As per them, php 8.2 is insufficiently developed and changes happens on a release basis and almost all developers are waiting for a really stable release to update (or not) their script compatibility.??</img>So my question is:
?</img>Is it true that no always latest version PHP is better & currently I should stick with PHP 8.1.?
P.S: To whom, who is trying to help me by replying; plz reply with little details. So that worry/overthinking??</img> will stop. Thanks in advance.
- The topic ‘Does changing PHP version make irreversible changes to website files/database?’ is closed to new replies.