Fixed invalid free, discovered by scan-build
Merged Pull Request #368

* pull-request/368:
  Fixed invalid free, discovered by scan-build
This function must return 0 on failure

Dicovered by scan-build
Merged Pull Request #369

* pull-request/369:
  This function must return 0 on failure
Skip for 5.2
E_DREPCATED IS E_STRICT in 5.2
protected/private properties are dumped differently in 5.2
Fix PHP5.2 build
Merged Pull Request #372

* pull-request/372:
  Fix PHP5.2 build
  protected/private properties are dumped differently in 5.2
  E_DREPCATED IS E_STRICT in 5.2
  Skip for 5.2
Add context option to log response headers
Fixed PHP-700: request/cursor mismatch

Discard of the socket when we have to return a failure, such as on timeout.

Although there is technically nothing wrong with the socket, our next
read to the server will return the data we are attempting to read right
now, hence resulting in completely random reply
Merged Pull Request #371

* pull-request/371:
  Fixed PHP-700: request/cursor mismatch
  Add context option to log response headers