New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error checking on Zend\Http\Client\Adapter\Socket->write(). #3033

Closed
wants to merge 1 commit into
base: master
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

Fix error checking on Zend\Http\Client\Adapter\Socket->write().

  • Loading branch information...
Peter Hillerström
Peter Hillerström committed Nov 20, 2012
commit 1a4c1d8d7a30921238a2a346b9c0abe0a0f7e80c
@@ -360,7 +360,7 @@ public function write($method, $uri, $http_ver = '1.1', $headers = array(), $bod
ErrorHandler::start();
$test = fwrite($this->socket, $request);
$error = ErrorHandler::stop();
if (!$test) {
if (false === $test) {
throw new AdapterException\RuntimeException('Error writing request to server', 0, $error);
}
ProTip! Use n and p to navigate between commits in a pull request.