Attempting to use picture module 2.x on a server (unfortunately) still running PHP 5.2.17 produces the following syntax-related error:
Error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in modules/contrib/picture/picture.module, line 1388
I'm very much aware that PHP 5.2 is end-of-life, but it is still out there, and technically meets Drupal 7's minimum requirements. If making picture 2.x compatible is not desired or feasible (which would be completely understandable), can we at least add that PHP 5.3+ is required for 2.x on the project page and Readme?
Comments
Comment #1
attiks commentedCan you try changing the line to
Comment #2
tannerjfco commentedSorry for the delay, but I tested this on our environment with PHP 5.2.17 and it does seem to resolve the issue. I haven't tested the module thoroughly but it does install and seem to function with this change.
Comment #4
jelle_sFixed in latest dev.
Comment #6
kliker commentedI just tried updating to latest dev from 7.x-1.x. on PHP 5.2.17.
When I initiated database update I received an error message:
Comment #7
Anonymous (not verified) commentedI’ve the same Error w/ the new update :-)
[05-Sep-2014 10:43:44] PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /Websites/drupal.dev/sites/all/modules/picture/includes/PictureMapping.php on line 194
Cache was cleared. 5.2 is the server config of a clients server :-(
Comment #9
attiks commentedFixed in 7.x-2.7, should be available soon
Comment #10
attiks commented