stuttter / wp-spider-cache

Your friendly neighborhood caching solution for WordPress
GNU General Public License v2.0
134 stars 16 forks source link

Not PHP 7.2 complient #30

Closed thefrosty closed 1 month ago

thefrosty commented 6 years ago

Using create_function is deprecated in PHP 7.2. Found in WP_Spider_Cache_Output::do_variants()

BrookeDot commented 4 years ago

There is some more discussion about the plugin's use of create_function as well as a path forward for version 6.0 of the plugin in #1

JJJ commented 1 month ago

I've been using the callback approach for a while now, and it seems to work OK.

Added a function_exists() check to avoid fatals in PHP8.0 and above.