You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seen with WP4.9.1 running on a PHP7.2.0 server:
PHP Deprecated: Function create_function() is deprecated in …\wp-content\plugins\comet-cache\src\includes\traits\Shared\FsUtils.php on line 33
It looks like we actually don't want to use Closures in plugin.php, since the code in that file where we use create_function() is code designed to show error notices for users running PHP < v5.4, which means using Closures there would actually break that code and not do what it's supposed to do (show a message when a user tries to run Comet Cache with PHP < 5.4).
raamdev
added a commit
to wpsharks/comet-cache-pro
that referenced
this issue
Feb 25, 2018
create_function() has been deprecated as of PHP 7.2
Occurrences of create_function() in /plugin.php were intentionally
excluded from this update as that source code is run when PHP < 5.4 is
detected (Closures require PHP 5.4+).
See wpsharks/comet-cache#921
Reported here: https://wordpress.org/support/topic/version-170220-function-create_function-is-deprecated-in-php-7-2/
The text was updated successfully, but these errors were encountered: