cvs: pear /Net_Sieve Sieve.php
| From: | Anish Mistry | Date: | Sun, 26 Mar 2006 19:21:16 +0000 |
| Subject: | cvs: pear /Net_Sieve Sieve.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39335@lists.php.net to get a copy of this message | ||
amistry Sun Mar 26 19:21:16 2006 UTC
Modified files:
/pear/Net_Sieve Sieve.php
Log:
Fix Bug #7197.
http://cvs.php.net/viewcvs.cgi/pear/Net_Sieve/Sieve.php?r1=1.9&r2=1.10&diff_format=u
Index: pear/Net_Sieve/Sieve.php
diff -u pear/Net_Sieve/Sieve.php:1.9 pear/Net_Sieve/Sieve.php:1.10
--- pear/Net_Sieve/Sieve.php:1.9 Wed Mar 22 03:09:42 2006
+++ pear/Net_Sieve/Sieve.php Sun Mar 26 19:21:16 2006
@@ -993,7 +993,13 @@
} elseif (preg_match('/^{([0-9]+)\+?}/i', $line, $matches)) {
// Matches String Responses.
//$line = str_replace("\r\n", ' ',
$this->_sock->read($matches[1] + 2 ));
- $line = $this->_sock->read($matches[1] + 2 );
+ $str_size = $matches[1] + 2;
+ $line = '';
+ $line_length = 0;
+ while ($line_length < $str_size) {
+ $line .= $this->_sock->read($str_size - $line_length);
+ $line_length = strlen($line);
+ }
if($this->_debug){
echo "S:$line\n";
}