happy9335 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Fix example bot #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Replace a line in example bot
while(!$conn->disconnected) {
with
while(!$conn->isDisconnected()) {

Original issue reported on code.google.com by Stam...@gmail.com on 25 May 2009 at 9:38

GoogleCodeExporter commented 9 years ago
About which example bot are you talking?

Original comment by popof...@gmail.com on 17 Jul 2009 at 7:11

GoogleCodeExporter commented 9 years ago
On index page http://code.google.com/p/xmpphp/
In section Examples.

Original comment by Stam...@gmail.com on 17 Jul 2009 at 8:11

GoogleCodeExporter commented 9 years ago
I agree with this issue.

$conn->disconnected produces an error.
$conn->isDisconnected() works fine.

A workaround would be to change the definition within XMPPStream.php:
Change it from:
   protected $disconnected = false;
to:
   public $disconnected = false;

Original comment by owen.sou...@gtempaccount.com on 18 Jan 2010 at 9:36