HI
In PHP4 Object passed by value meaning, in PHP5 its passed by reference (the correct way) so, the work around this issue in PHP4 was to add the "&". to fix your problem, just remove "&" from line 87 thanks Mohammed Alsharaf Http://www.safitech.com > From: [email protected] > To: [email protected] > Subject: [phpug] PHP 5.3.0 error > Date: Wed, 16 Sep 2009 10:45:35 +1200 > > > 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. > > > _________________________________________________________________ View photos of singles in your area. Click here http://clk.atdmt.com/NMN/go/163036679/direct/01/ --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
