The client on the hosting is PHP Version 5.3.10-1ubuntu3.15

Does not understand the code of the form:

 $arr = []; $site_login = Install::select()[0]["name"] 

This is all that I have found at the moment, it is not known what might come out in the future.

Whether prompt there are in php.ini options which are responsible for similar syntax? Or just raise the version of php?

  • Update php to 5.4 - Marsel Arduanov

1 answer 1

There are no options, so you have two options: either correct the code or update php (at least to 5.4, but better, of course, to 5.6, only it is now actively supported from the 5th branch).

Convert arrays to the old syntax, for example, using automatic tools, but dereferencing the result of the function already, most likely, only by hand. I recommend to spend time not on crutches, but on updating php.

By the way, support for version 5.3 was discontinued more than a year and a half ago, and the upgrade from 5.3 to 5.6 is almost painless.