Fix bug #62524, only follow redirects in file streams for 3xx HTTP statuses
Merge branch 'PHp-5.4' into PHP-5.5

* PHp-5.4:
  Fix bug #62524, only follow redirects in file streams for 3xx HTTP statuses
Merge branch 'PHP-5.5'

* PHP-5.5:
  Fix bug #62524, only follow redirects in file streams for 3xx HTTP statuses