The ctools branch is awesome! But, it requires php 5.3 due to the use of the function() {} syntax for anonymous functions. Out of the hundreds of modules that we use frequently with Drupal 7 sites, this is the only one that absolutely requires PHP 5.3. An we use create_function instead? It would do the same thing (I think), but wouldn't force the requirement of PHP 5.3.

Comments

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new965 bytes

Here you go, pretty sure this does exactly the same thing but using create_function() instead. Now we don't need 2 versions of PHP on servers!

amateescu’s picture

Status: Needs review » Fixed

Nice catch, committed to 7.x-1.x-ctools. Thanks :)

http://drupalcode.org/sandbox/amateescu/1429904.git/commit/f34c421

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.