Issue #2946598 by malaynayak, bkosborne: PHP 7.2+ future proofing, remove usage of deprecated "create_function()"