• Resolved dmpinder

    (@dmpinder)


    Hi,

    When checking your plugin for PHP 8.2 compatibility, these warnings and errors are found. Can you please update your plugin to be fully compatible with 8.2 and preferably 8.3 as well?

    FILE: public/app/plugins/patchstack/includes/2fa/polyfill/lib/byte_safe_strings.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------
    33 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
    | | (PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecatedRemoved)
    33 | ERROR | The constant "MB_OVERLOAD_STRING" is removed since PHP 8.0
    | | (PHPCompatibility.Constants.RemovedConstants.mb_overload_stringRemoved)
    87 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
    | | (PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecatedRemoved)
    87 | ERROR | The constant "MB_OVERLOAD_STRING" is removed since PHP 8.0
    | | (PHPCompatibility.Constants.RemovedConstants.mb_overload_stringRemoved)
    ------------------------------------------------------------------------------------------------------------------------


    FILE: public/app/plugins/patchstack/includes/2fa/polyfill/lib/random_bytes_mcrypt.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
    60 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or
    | | OpenSSL instead (PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_create_ivDeprecatedRemoved)
    60 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or
    | | pecl/mcrypt once available instead
    | | (PHPCompatibility.Extensions.RemovedExtensions.mcryptDeprecatedRemoved)
    60 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2
    | | (PHPCompatibility.Constants.RemovedConstants.mcrypt_dev_urandomDeprecatedRemoved)
    ------------------------------------------------------------------------------------------------------------------------
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Patchstack

    (@patchstack)

    Hello,

    The files that were detected with your script are part of a “polyfill”. The purpose of a polyfill is to provide backwards compatibility to older PHP versions which is why it is referencing to functions that may no longer be supported. It does not actually call these functions on newer PHP versions and should not be a cause of concern.

    Thread Starter dmpinder

    (@dmpinder)

    Thanks for the update!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.2 warnings/errors in plugin’ is closed to new replies.