I'm working with a client who's experiencing a great deal of angst because of some functions on her page suddenly not working because of, what I believe to be, an update to the PHP version her sight is using.
I've already repaired a scenario where the site was using mysql as opposed to mysqli, but I'm looking at something now that I'm not familiar with and i'm hoping someone can give me some insight knowing that the server has recently been updated.
Here's the code that's throwing the error:
for ($k=1;$k<=50;$k++)
{
global $$SitelokCustom[$k];
$cu[$k]=$$SitelokCustom[$k];
}
...and here's the error:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home1/nomasint/public_html/_vibralogix/vibralinklokipn/linklokipn.php on line 3318
I've never seen two $ signs before, but apparently that was working at one point. I started by eliminating that, but it didn't have any affect.
Any ideas?
Use https://github.com/PHPComp
The phpcs command finds compatibility issues.
The phpcbf command auto fixes many compatibility issues.