Skip to content

PHP 8 Compatibility #68

@claytonk

Description

@claytonk

If anyone is still maintaining this, there are a couple updates required to make this script compatible with PHP 8:

In the snippet "FileDownload" line 673 contains a create_function call which is deprecated:

array_walk($scriptProperties, create_function('&$val', 'if (!is_array($val)) $val = trim($val);'));

This can be changed to:

array_walk($scriptProperties, function(&$val){if (!is_array($val)){ $val = trim($val); }});

In model/php5-utf8/UTF8.php there are two issues that need fixing:

inline '#' comments need to be changed to '//'
all curly bracket references to characters within in a string such as: $char{1} need to be changed to $char[1]

With these changes it appears to work in PHP8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions