Skip to content

Commit 79d37fb

Browse files
committed
Fixed: 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 fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php on line 1236
1 parent 51c815a commit 79d37fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/mods-available/monitor_core_module.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ function _getLogData($log){
12331233

12341234
function _checkTcp ($host,$port) {
12351235

1236-
$fp = @fsockopen ($host, $port, &$errno, &$errstr, 2);
1236+
$fp = @fsockopen ($host, $port, $errno, $errstr, 2);
12371237

12381238
if ($fp) {
12391239
fclose($fp);
@@ -1245,7 +1245,7 @@ function _checkTcp ($host,$port) {
12451245

12461246
function _checkUdp ($host,$port) {
12471247

1248-
$fp = @fsockopen ('udp://'.$host, $port, &$errno, &$errstr, 2);
1248+
$fp = @fsockopen ('udp://'.$host, $port, $errno, $errstr, 2);
12491249

12501250
if ($fp) {
12511251
fclose($fp);

0 commit comments

Comments
 (0)