After an install to new Drupal 7 site and executing drush mbdl or drush mb-list, I get the following error message

PHP Parse error: syntax error, unexpected '[' in /var/www/html/sites/all/modules/module_builder/Environment/VersionHelper8.php on line 114
Drush command terminated abnormally due to an unrecoverable error.
Error: syntax error, unexpected '[' in /var/www/html/sites/all/modules/module_builder/Environment/VersionHelper8.php, line 114

Comments

rgchi created an issue. See original summary.

rgchi’s picture

Issue summary: View changes
joachim’s picture

Status: Active » Postponed (maintainer needs more info)

That line is:

    $setting_name_lookup = [

Are you using an old version of PHP that doesn't support the short array syntax?
That syntax was added in PHP 5.4, and PHP 5.3 ceased being supported 1 year, 8 months ago according to http://php.net/eol.php.

rgchi’s picture

Running 5.4

$ php --version
PHP 5.4.16 (cli) (built: Jun 10 2015 04:34:17) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
rgchi’s picture

Yikes. Forgive me I looked at the wrong server. Yes, the server where I ran into trouble was RHEL 6.x with PHP 5.3

rgchi’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)