Fix bug #64433: does not follow redirects for non-3xx response codes
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fix bug #64433: does not follow redirects for non-3xx response codes
Merge branch 'PHP-5.5'

* PHP-5.5:
  Fix bug #64433: does not follow redirects for non-3xx response codes