Thread:Extension talk:Maps/PHP 5.4 issues

Using the latest Maps version from Git, with PHP 5.4.9-4ubuntu2, using the example at https://semantic-mediawiki.org/wiki/Maps_examples/Google_Maps_shapes, we get multiple warnings when display_errors = 1.

Warning: Illegal string offset 'title' in .../extensions/Maps/includes/Maps_DisplayMapRenderer.php on line (multiple errors refererring to line 158 through line 163).

and then three occurences of the warning after the multiple illegal string offset warnings:

Warning: Cannot modify header information - headers already sent by (output started at /home/smwuser/extensions/Maps/includes/Maps_DisplayMapRenderer.php:161) in /home/smwuser/core/includes/WebResponse.php on line 38

This is because as of PHP 5.4, there are stricter checks for array keys (http://docs.php.net/manual/da/language.types.array.php - see Example 2).

This results in the circle of doom, the rectangle (im a square), and the polygon (meanwhile in norway) not to be displayed.

Any hints short of going back to PHP 5.3? Interestingly, the example also doesn't work completely in the SMW website and its on PHP 5.3.3-7+squeeze14 (apache2handler) per Special:Version.