Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
7.x-1.23
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2018 at 20:36 UTC
Updated:
4 Aug 2019 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
t2000k commentedObviously the error was displayed beacuse of the php version 5.2.17.
After changing it to 5.6.31 it works!
Comment #3
t2000k commentedComment #4
svenryen commentedTechnically, the module should have worked in 5.2.5, since that's the minimum requirement for Drupal.
I'll rewrite line 581 so that it works in PHP 5.2. Closures/anonymous functions were introduced first in PHP 5.3.
Comment #5
svenryen commentedComment #6
svenryen commentedComment #7
svenryen commentedI have looked into the conflicting line, and sadly it seems that the feature being used (callable functions) was first introduced for SQLite in PHP 5.4. A few attempts at refactoring have failed, so I'll include a note in the readme about this.
Comment #8
svenryen commentedActually, I was able to refactor in a syntax that should work in PHP 5.2.
Attaching patch.
Comment #11
svenryen commented