Skip to content

PHP8 issue: disk_free_space() generates fatal error at some webhosts - please add function_exists() #1213

@canufarm

Description

@canufarm

Hi,

if a webhost excludes the function disk_free_space() in his PHP-settings because of security, backupwordpress crashes, because since PHP8 "@" does not longer suppress fatal errors.

So if the webhost has set
disable_functions="diskfreespace, disk_free_space"
backupwordpress will no longer work. Please always check, if the function disk_free_space() exists before use, because a lot of webhosts do not allow this function.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions