• Resolved neotechnomad


    A week ago I upgraded all the sites I administer to PHP 7.2.
    The Sucuri plugin is still registering 5.6.36 version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author yorman


    There’s just a handful of places in the code with the PHP version:

    FILENAME                   | LINE | CODE
    src/sitecheck.lib.php      | 155  | $data['details'][] = … phpversion();
    src/settings-webinfo.php   | 41   | 'PHP_version' => PHP_VERSION,
    src/settings-hardening.php | 197  | … sprintf('PHP %s …', PHP_VERSION);
    src/settings-hardening.php | 199  | if (…(PHP_VERSION, '5.6.0') >= 0)) {

    We are either calling the built-in PHP phpversion() function or printing the built-in PHP_VERSION constant. Anything else is either coming from the external web scanner SiteCheck, or from a misconfigured PHP installation in the server.

    Scan your website using this tool — https://sitecheck.sucuri.net

    If it reports that your website is using a different version of PHP than you are expecting, then the problem is coming from the API, probably from cached data. This cache expires after 48 hours or so. If the version reported by this tool is correct, then the problem is coming from the built-in PHP_VERSION constant, in which case it’s up to your hosting provider to fix it.

    Let me know if you need more information.



    The link you posted does not list the PHP version when the scan is complete.


    Plugin Author yorman


    In this case, I would check if either PHP_VERSION or phpversion() return the correct version number with a simple PHP script. Create one and run it in your web server, see if it returns the expected information.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not Detect Correct PHP Version’ is closed to new replies.