php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31027 One-page .gz manuals not downloadable
Submitted: 2004-12-08 21:15 UTC Modified: 2004-12-09 08:06 UTC
From: karst at users dot sourceforge dot net Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: Windows XP SP2 Pro
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: karst at users dot sourceforge dot net
New email:
PHP Version: OS:

 

 [2004-12-08 21:15 UTC] karst at users dot sourceforge dot net
Description:
------------
When I try to download a single-html-file manual from (nl.)php.net it parses it as a .php-file and it isn't possible to download it.

Using both Mozilla Firefox 1.0 and Internet Explorer 6 SP1 on windows XP SP2 Pro.


Reproduce code:
---------------
Warning: Unexpected character in input: '' (ASCII=24) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607

Warning: Unexpected character in input: '' (ASCII=28) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607

Warning: Unexpected character in input: '' (ASCII=18) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607

Warning: Unexpected character in input: '' (ASCII=23) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607

Warning: Unexpected character in input: '' (ASCII=1) state=1 in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607

Parse error: parse error, unexpected T_STRING in /data/web/sites/nl.php.net/www/distributions/manual/php_manual_en.html.gz on line 607

URL of source: http://nl.php.net/distributions/manual/php_manual_en.html.gz


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-08 22:33 UTC] goba@php.net
This is a website problem. I have contacted the mirror maintainer, and pointed him to this bug report. We will see what is going to happen. Until that, you can use other mirrors to view that file.
 [2004-12-08 22:47 UTC] paulj at webtic dot nl
removed comment of the line in apache config
AddEncoding x-gzip gz tgz  

Now it downloads instead of being parsed as php,
is this the right behaviour?
 [2004-12-08 22:56 UTC] goba@php.net
See what other mirrors do. Www.php.net for example does the interesting stuff of sending the content, letting the browser uncompress it on the fly. Which makes it impossible to download the gzipped version for that matter, so it might not be a good choice. 
 [2004-12-08 22:58 UTC] derick@php.net
It is still parsed as PHP file... why are .gz files being parsed in the first place?
 [2004-12-08 23:25 UTC] paulj at webtic dot nl
added 
AddType application/octet-stream .chm .bz2 .tgz .gz

to the nl.php.net specific part of the config and
it seems to be working now.

no idea why it was parsed as php though..
 [2004-12-09 08:06 UTC] derick@php.net
Yup, it's fixed now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 08 00:01:27 2024 UTC