mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
pass by reference change
git-svn-id: file:///svn/phpbb/trunk@4264 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e3a6399c22
commit
78f4c39237
1 changed files with 5 additions and 5 deletions
|
@ -596,7 +596,7 @@ class Jabber
|
||||||
|
|
||||||
// _array_htmlspecialchars()
|
// _array_htmlspecialchars()
|
||||||
// applies htmlspecialchars() to all values in an array
|
// applies htmlspecialchars() to all values in an array
|
||||||
function _array_htmlspecialchars($array)
|
function _array_htmlspecialchars(&$array)
|
||||||
{
|
{
|
||||||
if (is_array($array))
|
if (is_array($array))
|
||||||
{
|
{
|
||||||
|
@ -948,10 +948,10 @@ class CJP_StandardConnector
|
||||||
|
|
||||||
function OpenSocket($server, $port)
|
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_blocking($this->active_socket, 0);
|
||||||
socket_set_timeout($this->active_socket, 31536000);
|
@socket_set_timeout($this->active_socket, 31536000);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -973,7 +973,7 @@ class CJP_StandardConnector
|
||||||
|
|
||||||
function ReadFromSocket($chunksize)
|
function ReadFromSocket($chunksize)
|
||||||
{
|
{
|
||||||
$buffer = fread($this->active_socket, $chunksize);
|
$buffer = @fread($this->active_socket, $chunksize);
|
||||||
@set_magic_quotes_runtime(get_magic_quotes_gpc());
|
@set_magic_quotes_runtime(get_magic_quotes_gpc());
|
||||||
|
|
||||||
return $buffer;
|
return $buffer;
|
||||||
|
|
Loading…
Add table
Reference in a new issue