Problem/Motivation
Upgrading to 1.8 version get the error:
Parse error: syntax error, unexpected '(' in .../sites/all/modules/link/link.module on line 1376
Steps to reproduce
Upgrade to version 7.x-1.8
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | link-n3209434-5.patch | 2.19 KB | damienmckenna |
| #2 | link-n3209434-2.patch | 407 bytes | damienmckenna |
Comments
Comment #2
damienmckennaDangit. Sorry about that. This is a syntax bug that PHP 7 ignores but PHP 5.3 fails on.
Comment #3
damienmckennaComment #4
tiziano.sartori commentedI confirm is related to PHP 5.4
Comment #5
damienmckennaThere were more occurrences of the same bug.
Comment #6
jmohino commentedHello everybody. I have had the same problem when updating to version 7.x-1.8 with php 5.4.16, with the link.module file but in the lines:
1376, 1390, 1409, 1430, 1442, 1460 and 1475
After the parentheses are removed, the site is back up and running.
Thanks for the help.
Comment #8
damienmckennaCommitted.
Comment #9
damienmckennaI released 7.x-1.9 with this fix: https://www.drupal.org/project/link/releases/7.x-1.9
Sorry about this slipping under the radar, we'll be more careful with future releases.