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.
Hello,
For a client I am migrating a number of sites to a PHP 7.2 platform and I get the following warning:
Deprecated function: Function create_function() is deprecated in bueditor_icons() (regel 930 van bueditor/admin/bueditor.admin.inc).
I looked in the code but see no obvious way to patch this. The code is
/**
* Load icons in the path
*/
function bueditor_icons($path) {
$icons = file_scan_directory($path, '/\.(png|gif|jpg)$/', array('recurse' => FALSE, 'key' => 'filename'));
array_walk($icons, create_function('&$value', '$value = 1;'));
return $icons;
}
Will the module be compatible with PHP 7.2 (and higher)?
Mvgr, Louis Nagtegaal
Comment | File | Size | Author |
---|---|---|---|
#3 | deprecated_features-3060885-3.patch | 1.54 KB | HitchShock |
#2 | bueditor-3060885-2.patch | 535 bytes | daiwik.addweb |
Comments
Comment #2
daiwik.addweb CreditAttribution: daiwik.addweb at AddWeb Solution Pvt. Ltd. commented@louisnagtegaal, Please find the below attached for the issue that mentioned, hope this will helps!.
Thanks
Comment #3
HitchShockWe have several deprecated features in the project, so we have to fix all of them
Comment #5
ufku CreditAttribution: ufku commentedCommitted. Thanks.