Handle malformed PHP responses