Re: Checking code for PHP 8.1.6 compatibility before upgrade

[email protected] (Ian Evans)
Newsgroups php.general
Message-ID <CABiY0=iN+q6u7JCkbAZ--ajK=pvoQZ83OfRkJsRQPSp-DQtbEQ@mail.gmail.com>
On Mon, May 30, 2022, 4:30 PM , <[email protected]> wrote:

> One thing i noticed when I upgraded from 5 - 8 I had to change the opening
> text
>
> I had   <?
>
> but I had to change it to <?php   to avoid errors (it wouldn't compile at
> all)
>
> Godon.
>
> On Tue, May 31, 2022 at 3:07 AM Ian Evans <[email protected]> wrote:
> >
> > Long story short, due to some health issues in the past few years, I am
> WAY behind in upgrading my server and PHP. Still running php 5.5.9!
> >
> > Is there a script that can "lint" my code and tell me what is completely
> broken if I move to 8.1 and what can wait for a weekend and a pot of
> coffee? And if so, can that script be run on a 5.5.9 system or do I need to
> spin up a cheap VPS with 8.1 and run it against the code there?
> >
> > Thanks for any advice.
>

Thanks.
Yes, my code has opened with
 <?php since the beginning. Biggest concern is deprecated or renamed
functions.

>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.