php 5.3
Parsing replies. Currently untested.
Fixed test.