cvs: pear /Net_Sieve Sieve.php
| From: | Anish Mistry | Date: | Wed, 16 Aug 2006 07:52:41 +0000 |
| Subject: | cvs: pear /Net_Sieve Sieve.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41626@lists.php.net to get a copy of this message | ||
amistry Wed Aug 16 07:52:41 2006 UTC
Modified files:
/pear/Net_Sieve Sieve.php
Log:
Fix Bug #8452
Occasionally, my Sieve server (Cyrus 2.3 snapshot) freaks out
and doesn't actually return any data on the port after
completing the TCP handshake. This causes the _recvLn() to
return a continuous stream of ''. The while(true) loop.
Thanks To: selsky at columbia dot edu
http://cvs.php.net/viewvc.cgi/pear/Net_Sieve/Sieve.php?r1=1.10&r2=1.11&diff_format=u
Index: pear/Net_Sieve/Sieve.php
diff -u pear/Net_Sieve/Sieve.php:1.10 pear/Net_Sieve/Sieve.php:1.11
--- pear/Net_Sieve/Sieve.php:1.10 Sun Mar 26 19:21:16 2006
+++ pear/Net_Sieve/Sieve.php Wed Aug 16 07:52:41 2006
@@ -911,10 +911,10 @@
echo "S:$lastline\n" ;
}
-/* if( $lastline === '' ){
- return new PEAR_Error('Failed to receive from the socket: ' );
+ if( $lastline === '' ) {
+ return new PEAR_Error('Failed to receive from the socket' );
}
-*/
+
return $lastline;
}