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

Comments

louisnagtegaal created an issue. See original summary.

daiwik.addweb’s picture

Status: Active » Needs review
StatusFileSize
new535 bytes

@louisnagtegaal, Please find the below attached for the issue that mentioned, hope this will helps!.

Thanks

hitchshock’s picture

StatusFileSize
new1.54 KB

We have several deprecated features in the project, so we have to fix all of them

  • ufku committed abc20d8 on 7.x-1.x
    Issue #3060885 by louisnagtegaal, RoshniPatel.addweb, HitchShock:...
ufku’s picture

Version: 7.x-1.8 » 7.x-1.x-dev
Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

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