diff --git a/src/Sag.php b/src/Sag.php index 784f326..e724ede 100644 --- a/src/Sag.php +++ b/src/Sag.php @@ -905,6 +905,8 @@ private function procPacket($method, $url, $data = null, $headers = array()) if($sockInfo['timed_out']) throw new SagException('Connection timed out while reading.'); + //TODO deal with fgets() returning false + //TODO add tests to check binary safeness $line = fgets($sock); if($isHeader)