• Hello,

    Using the WP Compatibility Checker plugin, it has uncovered the following issues:

    FILE: /usr/share/wordpress/wp-content/plugins/exploit-scanner/exploit-scanner.php
    ---------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------
     989 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ---------------------------------------------------------------------------------
    
    FILE: /usr/share/wordpress/wp-content/plugins/exploit-scanner/hashes-3.7.2.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Could they be fixed.

    Thank you,
    Edward

    https://www.ads-software.com/plugins/exploit-scanner/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Texiwill

    (@texiwill)

    Hello,

    Here is the patch to fix the PHP7.0 compatibility issues. THere are two files that need an update: exploit-scanner.php and hashes-3.7.2.php… With this patch exploit-scanner is PHP Compatible.

    diff -rcb exploit-scanner/exploit-scanner.php exploit-scanner.upd/exploit-scanner.php
    *** exploit-scanner/exploit-scanner.php 2016-09-18 10:07:46.593223943 -0500
    --- exploit-scanner.upd/exploit-scanner.php     2016-09-26 10:24:05.341990484 -0500
    ***************
    *** 957,964 ****
    
      if ( class_exists( 'Text_Diff_Renderer' ) ) :
      class ES_Text_Diff_Renderer extends Text_Diff_Renderer {
    !       function ES_Text_Diff_Renderer() {
    !               parent::Text_Diff_Renderer();
            }
    
            function _startBlock( $header ) {
    --- 957,964 ----
    
      if ( class_exists( 'Text_Diff_Renderer' ) ) :
      class ES_Text_Diff_Renderer extends Text_Diff_Renderer {
    !       function __construct() {
    !               parent::__construct();
            }
    
            function _startBlock( $header ) {
    diff -rcb exploit-scanner/hashes-3.7.2.php exploit-scanner.upd/hashes-3.7.2.php
    *** exploit-scanner/hashes-3.7.2.php    2016-09-18 10:07:41.375853804 -0500
    --- exploit-scanner.upd/hashes-3.7.2.php        2016-09-26 10:24:06.287057530 -0500
    ***************
    *** 1,4 ****
    ! <?php^M
      $filehashes = array(^M
      'wp-settings.php' => 'b8b62fb7a9d829a3bcbda1f5181f02b9',^M
      'wp-cron.php' => '0210bf661bbbeb1fb262b5189885892a',^M
    --- 1,4 ----
    ! <?php^M
      $filehashes = array(^M
      'wp-settings.php' => 'b8b62fb7a9d829a3bcbda1f5181f02b9',^M
      'wp-cron.php' => '0210bf661bbbeb1fb262b5189885892a',^M
    

    Best regards,
    Edward Haletky

    Stagger Lee

    (@stagger-lee)

    Can add this too (PHP 7.x Stable):

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ES_Text_Diff_Renderer has a deprecated constructor in D:\UniServerZ\www\custom\wp-content\plugins\exploit-scanner\exploit-scanner.php on line 959

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