Support » Plugin: Smush Image Compression and Optimization » PHP 7.1Compatibility

  • Resolved zigsp8

    (@zigsp8)


    Siteground’s SG Optimizer/PHP Configure plugin claims that Smush is not compatible with PHP 7.1.

    Is this correct? See error description below.

    FILE: ../wp-content/plugins/wp-smushit/lib/class-wp-smush-recommender.php
    ---------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------------
     80 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__dir__' (since PHP version 5.3)
    ---------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: .../wp-content/plugins/wp-smushit/lib/class-wp-smush-admin.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------
     374 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__dir__' (since PHP version 5.3)
    ----------------------------------------------------------------------------------------------------------------------------------------
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @zigsp8,

    Smush is fully compatible even with PHP 7.2. We’ll have these warnings resolved in the next update.

    Best regards,
    Anton

    zigsp8

    (@zigsp8)

    Thanks for the confirmation, Anton.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.