Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

PHP 7.1 Compatibility #65

@CaelanStewart

Description

@CaelanStewart

Upon using AIOM in a PHP 7.1 environment, I am now seeing several warnings and notices appearing.

Warning: A non-numeric value encountered in AllInOneMinify.module on line 713

Upon further inspection, the variable $_timestamp is initialised as '' rather than 0. Therefore the new notices that PHP issues when arithmetic is performed on non numeric values pop up.

The other error I saw is:

Notice: A non well formed numeric value encountered in cssmin.php on line 769

Upon further inspection, I can see that the variable $size is an integer in the form of a string, and is sometimes suffixed with a unit. That unit is not removed before $size is implicitly casted to an integer during the arithmetic seen on that line.

None of issues actually cause any real problems, it's just nice knowing that there are no errors being issued whatsoever.

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