Hello all,

This error is showing in PHP 5.3.0 - the code worked in PHP 5.2.10.

Deprecated: Call-time pass-by-reference has been deprecated in [deleted] on 
line 87 Deprecated: Call-time pass-by-reference has been deprecated in 
[deleted] on line 87 

function open() {
                if ($this->sockfd > 0) {
                $this->close();
                }
$this->sockfd = fsockopen($this->ClientHost,
$this->ClientPort,&$errno,&$errstr,$this->ClientTimeout);
return ($this->sockfd > 0);
}

Line 87 is the line that starts '$this->sockfd' and 
ends '$this->ClientTimeout);'.

Now I sort of figure it has to do with how the variables ClientHost, 
ClientPort and ClientTimeout are being referenced.

They appear further up in the code as:
        var $ClientHost      = "[ip address]";
        var $ClientPort      = [port number];
        var $ClientTimeout   = 100;
        var $sockfd = -1;

I am not familiar enough with OO coding to know what to do to fix this.

Can anyone provide some direction please?

Thanks.

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to