#3671 (ok 3.5.3) PHP Fatal Error on Status - Advisor page

3.5.2
fixed
1
2013-06-11
2012-08-28
William
No

When on the 'Status' page -> 'Advisor' tab in PMA, the analyzer runs forever on my system, with the following is received as the response from 'server_status.php' when checking in firebug/chrome developer tools:

<b>Fatal error</b>: Call to a member function memory() on a non-object in <b>/path/to/PMA/libraries/Advisor.class.php</b> on line <b>37</b><br />

This is due to `getSysInfo' returning an empty array since PHP_OS is 'SunOS' for me, which is not listed in the array in `getSysInfo' as a supported OS. This should probably cause a more graceful failure from Advisor.class.php , maybe with the help of an `if (!empty($sysinfo))' check before the `memory()' method is called or something.

SunOs 5.10
PHP 5.2.6
PMA 3.5.2.2

Discussion

  • Ann + J.M.

    Ann + J.M. - 2012-09-04
    • labels: 438951 --> Compatibility
    • priority: 5 --> 1
    • assigned_to: nobody --> mynetx
    • summary: PHP Fatal Error on Status - Advisor page --> (ok 3.5.3) PHP Fatal Error on Status - Advisor page
    • status: open --> open-fixed
     
  • Ann + J.M.

    Ann + J.M. - 2012-09-04

    This bug was fixed in repository and will be part of a future release; thanks for reporting.

    Support for system memory and swap statistics in SunOS, Solaris and OpenSolaris was added.

     
  • Marc Delisle

    Marc Delisle - 2012-10-08
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks