Problem/Motivation

The code contains a deprecated function

Steps to reproduce

Run php-compat, which generates report of PHP deprecations when upgrading to PHP 7 or 8.

Proposed resolution

Replace the create_function call with an anonymous function.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

ethomas08 created an issue. See original summary.

ethomas08’s picture

Per the recommendation and example of the create_function page in the php.net documentation (https://www.php.net/manual/en/function.create-function.php), I created a patch to replace create_function with an anonymous function.