php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21423 One of the mirrors for 4.3.0 appears to be faulty
Submitted: 2003-01-05 02:46 UTC Modified: 2003-01-06 04:43 UTC
From: silicon at bigpond dot net dot au Assigned:
Status: Closed Package: Website problem
PHP Version: 4.3.0 OS: Windows ME
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: silicon at bigpond dot net dot au
New email:
PHP Version: OS:

 

 [2003-01-05 02:46 UTC] silicon at bigpond dot net dot au
I downloaded the tar.gz version of 4.3.0 from the second Australian mirror and the filename was php-4.3.0.tar.tar.

I'm not sure if this is intentional, but since the other Australian mirrors link to php-4.3.0.tar.gz, I assume it wasn't. I attempted to use tar to extract that file from the second mirror but was unsuccessful.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-05 07:02 UTC] nicos@php.net
I can't reproduce this... 
 [2003-01-05 07:05 UTC] silicon at bigpond dot net dot au
Well, here is the direct link to the file in question.

http://www.php.net/do_download.php?mr=http%3A%2F%2Fau2.php.net%2F&df=php-4.3.0.tar.gz

That link leads to the .tar.tar file.
 [2003-01-05 07:08 UTC] goba@php.net
Yes, you are right. I am going to contact the maintainer, and point him to thig bugreport....
 [2003-01-05 07:09 UTC] silicon at bigpond dot net dot au
Great! Hope it gets fixed soon.
 [2003-01-05 09:04 UTC] toni dot viemero at iki dot fi
I bet this "bug" is because Windows browsers like to change the file-extension. (Using Phoenix 0.5 in Windows results in .tar.gz.tar (in every site I can remember)).
The server itself is serving the files ok.

[toni@extra:~]$ wget "http://www.php.net/do_download.php?mr=http%3A%2F%2Fau2.php.net%2F&df=php-4.3.0.tar.gz"
...
Connecting to www.php.net[64.246.30.37]:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://au2.php.net/distributions/php-4.3.0.tar.gz [following]
...
17:01:47 (107.88 KB/s) - `php-4.3.0.tar.gz' saved [4501159/4501159]
 [2003-01-05 09:33 UTC] sander@php.net
$ curl -I http://www.php.net/distributions/php-4.3.0.tar.gz
HTTP/1.1 200 OK
(...)
Content-Type: application/x-tar
Content-Encoding: x-gzip

$ curl -I http://au2.php.net/distributions/php-4.3.0.tar.gz
HTTP/1.1 200 OK
(...)
Content-Type: application/x-tar

That's the cause of the problem. Some browsers 'fix' the extension using the supplied Content-Type. It should be either application/x-gzip or application/octet-stream, which is always safe, or it should provide a Content-Encoding header.
 [2003-01-05 11:55 UTC] goba@php.net
As Sander pointed out, the server is not sending the proper HTTP headers. So the mirror setup should be corrected...
 [2003-01-05 19:44 UTC] steve at ilisys dot com dot au
That problem should be fixed now. Apologies for the oversight.
We now replicate the behavior of the primary php.net site. 

$ curl -I http://www.php.net/distributions/php-4.3.0.tar.gz
HTTP/1.1 200 OK
(...)
Content-Type: application/x-tar
Content-Encoding: x-gzip

$ curl -I http://au2.php.net/distributions/php-4.3.0.tar.gz
HTTP/1.1 200 OK
(...)
Content-Type: application/x-tar
Content-Encoding: x-gzip

regards,

Steve
 [2003-01-06 04:43 UTC] goba@php.net
OK, so this is fixed...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 12:01:33 2025 UTC