| @@ 3510-3517 (lines=8) @@ | ||
| 3507 |                         if ($degzdata = @gzinflate($data)) { | |
| 3508 | $data = $degzdata; | |
| 3509 |                             $this->debug('The payload has been inflated to ' . strlen($data) . ' bytes'); | |
| 3510 |                             if (strlen($data) < $datalen) { | |
| 3511 | // test for the case that the payload has been compressed twice | |
| 3512 |                                 $this->debug('The inflated payload is smaller than the gzipped one; try again'); | |
| 3513 |                                 if ($degzdata = @gzinflate($data)) { | |
| 3514 | $data = $degzdata; | |
| 3515 |                                     $this->debug('The payload has been inflated again to ' . strlen($data) . ' bytes'); | |
| 3516 | } | |
| 3517 | } | |
| 3518 |                         } else { | |
| 3519 |                             $this->debug('Error using gzinflate to inflate the payload'); | |
| 3520 |                             $this->setError('Error using gzinflate to inflate the payload'); | |
| @@ 3526-3533 (lines=8) @@ | ||
| 3523 |                         if ($degzdata = @gzinflate(substr($data, 10))) {    // do our best | |
| 3524 | $data = $degzdata; | |
| 3525 |                             $this->debug('The payload has been un-gzipped to ' . strlen($data) . ' bytes'); | |
| 3526 |                             if (strlen($data) < $datalen) { | |
| 3527 | // test for the case that the payload has been compressed twice | |
| 3528 |                                 $this->debug('The un-gzipped payload is smaller than the gzipped one; try again'); | |
| 3529 |                                 if ($degzdata = @gzinflate(substr($data, 10))) { | |
| 3530 | $data = $degzdata; | |
| 3531 |                                     $this->debug('The payload has been un-gzipped again to ' . strlen($data) . ' bytes'); | |
| 3532 | } | |
| 3533 | } | |
| 3534 |                         } else { | |
| 3535 |                             $this->debug('Error using gzinflate to un-gzip the payload'); | |
| 3536 |                             $this->setError('Error using gzinflate to un-gzip the payload'); | |