Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PHP's create_function() has been deprecated as of PHP 7.2. This function is used to create an anonymous function. PHP 5.3 has an alternative to doing this, but this too should be avoided because Drupal 7 officially supports PHP 5.2.5+.
To make this module compatible with future versions of PHP 7, its usage should be replaced with the remaining alternative, which is using a real function definition instead of an anonymous function.
Comment | File | Size | Author |
---|---|---|---|
#11 | mimemail-support_php_72-2947006-11.patch | 1.66 KB | fadonascimento |
#5 | interdiff_2_4.txt | 1.65 KB | loopduplicate |
#4 | mimemail-support_php_72-2947006-4.patch | 1.66 KB | oadaeh |
#2 | deprecated_create_function-2947006-2.patch | 835 bytes | vlklavanya |
Comments
Comment #2
vlklavanya CreditAttribution: vlklavanya as a volunteer and at TA Digital commentedHi,
Please review the uploaded patch.
Comment #3
vlklavanya CreditAttribution: vlklavanya as a volunteer and at TA Digital commentedComment #4
oadaeh CreditAttribution: oadaeh as a volunteer and at Flatt and Sons commented@vlklavanya your patch needs
php = 5.3
added to the .info module to be complete.However, attached is a patch that accomplishes the task in a way that does not need to change the module's requirements.
Comment #5
loopduplicateComment #6
loopduplicateLooks great :) I like the old way better anyway :)
Comment #7
sjerdoPatch #4 LGTM +1
Comment #9
jerdavisLooks good. Thanks!
Comment #11
fadonascimento CreditAttribution: fadonascimento at CI&T for CI&T commentedI'm upload a new patch to change "strtolower" to "drupal_strtolower", to avoid unicode bugs.