From 78f4c392373fc451db4246588905f08b9d56a622 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 14 Jul 2003 22:57:29 +0000 Subject: [PATCH] pass by reference change git-svn-id: file:///svn/phpbb/trunk@4264 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_jabber.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php index aca7d39473..271bf98b7c 100644 --- a/phpBB/includes/functions_jabber.php +++ b/phpBB/includes/functions_jabber.php @@ -596,7 +596,7 @@ class Jabber // _array_htmlspecialchars() // applies htmlspecialchars() to all values in an array - function _array_htmlspecialchars($array) + function _array_htmlspecialchars(&$array) { if (is_array($array)) { @@ -948,10 +948,10 @@ class CJP_StandardConnector function OpenSocket($server, $port) { - if ($this->active_socket = fsockopen($server, $port)) + if ($this->active_socket = @fsockopen($server, $port, $err, $err2, 5)) { - socket_set_blocking($this->active_socket, 0); - socket_set_timeout($this->active_socket, 31536000); + @socket_set_blocking($this->active_socket, 0); + @socket_set_timeout($this->active_socket, 31536000); return TRUE; } @@ -973,7 +973,7 @@ class CJP_StandardConnector function ReadFromSocket($chunksize) { - $buffer = fread($this->active_socket, $chunksize); + $buffer = @fread($this->active_socket, $chunksize); @set_magic_quotes_runtime(get_magic_quotes_gpc()); return $buffer;