Coding error

Discussion in 'Installation/Configuration' started by korbynn, Mar 12, 2010.

  1. korbynn

    korbynn Member

    Is this a coding error?

    [Thu Mar 11 22:09:11 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
    [Thu Mar 11 22:12:57 2010] [error] [client 154.5.203.43] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed
    by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable c
    all-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not suppor
    t this any longer. in /usr/local/ispconfig/interface/web/monitor/show_sys_state.php on line 140, referer: http://korbynn.net:8080/
    [Thu Mar 11 22:12:57 2010] [error] [client 154.5.203.43] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed
    by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable c
    t this any longer. in /usr/local/ispconfig/interface/web/monitor/show_sys_state.php on line 140, referer: http://korbynn.net:8080/
    t this any longer. in /usr/local/ispconfig/interface/web/monitor/show_sys_state.php on line 140, referer: http://korbynn.net:8080/
    [Thu Mar 11 22:14:31 2010] [notice] caught SIGTERM, shutting down

    I have upgraded to ISPConfig 3.2
     
  2. korbynn

    korbynn Member

    Removed the &'s on the variables _processDb

    Line 140: _processDbState($record['type'], $serverId, &$serverState, &$messages);

    to

    Line 140: _processDbState($record['type'], $serverId, $serverState, $messages);

    because the function is defined as:

    function _processDbState($type, $serverId, &$serverState, &$messages)

    Error messages are no longer in the error_log.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    No, this are no error messages. The language definition of the PHP programming language is changing from version to version. What you got are no errors, it were warnings to inform developers that specific features will get removed in future PHP versions. To avoid these messages, please set the error level in the php.ini to show only errors and not warnings.

    We might modify the code so that these warnings do not appear in a future version of ispconfig, but this needs testing on many older PHP releases to ensure that it does not break any code.
     

Share This Page