• Resolved instinchris

    (@instinchris)


    Hey there, i want update my server to PHP 8.1.
    I run a check with PHP Compatibility Checker and got following error.
    Will the plug in still work?

    FILE: /www/htdocs/w01b7ee1/smartpackagingeurope.eu/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/php-typography/src/class-strings.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      98 | ERROR   | The function mb_str_split() is not present in PHP version 7.3 or earlier
     114 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$codes" was used, and possibly changed (by reference), on line 113.
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /www/htdocs/w01b7ee1/smartpackagingeurope.eu/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/check-wp-requirements/class-wp-requirements.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     214 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$format" was used, and possibly changed (by reference), on line 210.
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pepe

    (@pputzer)

    The first one is a false positive and not relevant with PHP 8.1 in any case (since 8.1 > 7.3). Are you sure that PHP Compatibility Checker checked for the correct version of PHP?

    The warnings are false positives as well (the use of func_get_args in conjunction with modifying parameter values is intentional).

    You will get warnings with PHP 8.1 however, from the underyling library (PHP-Typography). The plugin should work fine, but PHP will complain (in your logs). I am currently working on an updated version requiring PHP 7.4+ that will be fully compatible with PHP 8.1.

    Thread Starter instinchris

    (@instinchris)

    Hey Pepe,
    I see that the tool only checks till version PHP 7.3.
    Thanks for your response that the plugin will work fine!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Php Update Checker – Error detected’ is closed to new replies.