Follow 308 Permanent Redirect responses.

Fixes bug #67430 (http:// wrapper doesn't follow 308 redirects).
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Follow 308 Permanent Redirect responses.