Support » Plugin: Cloudflare » PHP 7.0 Compatibility for CloudFlare

  • Hello,
    I, and probably may others slowly preparing for migration to PHP 7.0.
    I have just runned PHP Compatibility Check plugin, and Cloudflare has been highlighted as not compatible with PHP 7.0 with 1 Warning and 35 Errors.

    Is there any work through compatibility with 7.0 from your site?

    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/webmozart/assert/src/Assert.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 10 ERRORS AFFECTING 10 LINES
    -------------------------------------------------------------------------------------------------------------------------------------
     146 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'string' (since version 7.0)
     158 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
     182 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'float' (since version 7.0)
     192 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'numeric' (since version 7.0)
     222 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'object' (since version 7.0)
     232 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'resource' (since version 7.0)
     322 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'null' (since version 7.0)
     341 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'true' (since version 7.0)
     351 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'false' (since version 7.0)
     656 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    -------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/type-resolver/src/Types/Array_.php
    --------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------
     47 | ERROR | 'mixed' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    --------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/type-resolver/src/Types/Mixed.php
    -------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------
     20 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'Mixed' (since version 7.0)
    -------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/type-resolver/src/Types/Resource.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------------
     20 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword 'Resource' (since version 7.0)
    ----------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
     54 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
     39 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
     40 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
     88 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
     48 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     38 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
     49 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
     47 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------------------
     53 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
     56 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------
     43 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     53 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     43 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
     47 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------
     43 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
     43 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
     46 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Description.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
     67 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/src/DocBlock.php
    ----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------
      60 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
     172 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
     197 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ----------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/phpdocumentor/reflection-docblock/examples/04-adding-your-own-tag.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------
     91 | ERROR | 'string' is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/.../public_html/wp-content/plugins/cloudflare/vendor/sebastian/global-state/src/Snapshot.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------
     383 | WARNING | INI directive 'register_long_arrays' is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    -----------------------------------------------------------------------------------------------------------------------------------
Viewing 2 replies - 1 through 2 (of 2 total)
  • I just ran the same test and got the same result.

    Plugin Contributor thellimist

    (@furkan811)

    Hi @idarek,

    The warnings/errors will not effect the plugin or your website in any way. We will remove those errors/warnings in the next release. Personally I’m using PHP 7.0.0.

    EDIT: Just now I’ve upgraded to PHP 7.0.10 everything is perfect. Feel free to upgrade your plugin.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7.0 Compatibility for CloudFlare’ is closed to new replies.