• Resolved David181

    (@david181)


    Hi there,

    I am close to upgrade the PHP version of my server, 7.2 or 7.3. I checked the compatbility of my plugins and this warning occurs with Catchify:

    FILE: plugins/cachify/trunk/inc/cachify.class.php
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    1219 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead

    FILE: plugins/cachify/inc/cachify.class.php
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    1219 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead

    Can you tell me about what’s wrong here?
    Does this affect the functionality of the plugin?
    What is the lastest PHP version Cachify supports?

    Thanks and best,
    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi David,

    besides this deprecation warning Cachify works fine with both 7.2 and 7.3.
    The create_function() function is still present and works as desired (will most likely in PHP 8)

    Actually this has been fixed more than a year ago in the upcoming release 2.3 …

    However the current stable release is stil 2.2.4, so you might either ignore the deprecation warning (i.e. by adding something like error_reporting(E_ALL ^ E_DEPRECATED); to your config) or stay at PHP 7.1.

    Regards,
    Stefan

    Thread Starter David181

    (@david181)

    Hi @stklcode,

    thanks for your reply.
    Great to hear that the function is still working with 7.3.

    Do you know why the update 2.3 hasn’t been released yet? Sounds like a fix that can be made. ??

    Thanks and best,
    David

    Do you know why the update 2.3 hasn’t been released yet? Sounds like a fix that can be made. ??

    2.3 contains some optimizations with that break compatibility in some cases. The team has not yet came up with a final decision on whether to revert those changes or improve the improvements again.

    I’ll try to trigger some movements here and see if the release can be published soon. Or maybe push a 2.2.5 minor update with the small PHP 7.2 correction.

    Cheers,
    Stefan

    Thread Starter David181

    (@david181)

    Hi Stefan,

    got it.
    Thanks for the update and good luck with further development. Thanks for your effort!

    Best,
    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warnings with PHP 7.2 / 7.3 compatibility’ is closed to new replies.