Не могу понять почему в PHP 5.6 отдаются все заголовки с перенаправлениями, а в 5.3 - нет. Возможно, какой-то параметр был в 5.3? Вызов стандартный: PHP: get_headers("http://php.ru/"); PHP 5.6 Код (Text): php.ru HTTP/1.1 301 Moved Permanently Server: nginx Date: Tue, 28 Mar 2017 06:39:38 GMT Content-Type: text/html Content-Length: 178 Connection: close Location: https://php.ru/ HTTP/1.1 200 OK Server: nginx Date: Tue, 28 Mar 2017 06:39:38 GMT Content-Type: text/html; charset=UTF-8 Connection: close Set-Cookie: PHPSESSID=3ittceot0mdicifptogbnr8q75; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block; Strict-Transport-Security: max-age=31536000; PHP 5.3 Код (Text): php.ru HTTP/1.1 301 Moved Permanently Server: nginx Date: Tue, 28 Mar 2017 06:38:29 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Location: https://php.ru/