Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

syntax error on PHP 5.2.17, #63

Description

@stephankn

tileserver.php is not working and ends with a syntax error.

Parse error: syntax error, unexpected '[' in /home/webuser/domains/example.com/public_html/map/tileserver/tileserver.php on line 344

Webhosting uses PHP 5.2.17
I believe the used syntax is only valid from 5.4+ and should be replaced by the array() function.

not working on 5.2:

      //detect image type from file
      $mimetypes = ['gif', 'jpeg', 'png'];

changed to:

      //detect image type from file
      $mimetypes = array('gif', 'jpeg', 'png');

makes is work.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions