Error on PHP 4 site

drew reece - March 29, 2008 - 18:13
Project:GMap Addons
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I get the following error for a site running Apache 2 and PHP 4.4.8

Parse error: syntax error, unexpected '=', expecting ')' in /www/httpdocs/sites/all/modules/gmap_addons/gmap_overlays/gmap_overlays.module on line 14

I don't think it's allowed to set a referenced variable to a default value in the function declaration.
Replacing the &$map=NULL with &$map results in a missing argument error on line 14, unsurprisingly.

Drew

#1

bdragon - September 30, 2008 - 21:56
 
 

Drupal is a registered trademark of Dries Buytaert.