php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37860 gzip encoded form input is not handled correctly
Submitted: 2006-06-20 11:59 UTC Modified: 2017-01-29 04:22 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tjerk dot meesters at muvee dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.1.4 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tjerk dot meesters at muvee dot com
New email:
PHP Version: OS:

 

 [2006-06-20 11:59 UTC] tjerk dot meesters at muvee dot com
Description:
------------
When gzip encoded input is used to post form data, the variables are lost.

The example code expects a form.php which simply does a print_r() on $_POST.

It's assumed that the zlib functionality is available.

Reproduce code:
---------------
<?php

echo file_get_contents(
	'http://www.example.com/form.php',false,
	stream_context_create(array(
		'http'=>array(
			'method'=>'POST',
			'header'=>"Content-Type: application/x-www-form-urlencoded\nContent-Encoding: gzip",
			'content'=>gzencode('data=somebigvalue'),
		)
	))
);

?>

Expected result:
----------------
A print_r() output of an array where the key 'data' is set to 'somebigvalue'

Actual result:
--------------
A print_r() of an empty array.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-20 14:30 UTC] mike@php.net
This is not a bug, why would you assume that is *supposed* to work? You can create a feature request though.

 [2006-06-21 04:35 UTC] tjerk dot meesters at muvee dot com
Fair enough, in that case I'll change it to the following request:

Add support for compressed posted data.

Background: some asp scripts make the assumption that this is a normal thing to support; I'm not sure whether any browser actually supports this feature, but it seems to be a valid request.
 [2017-01-20 20:59 UTC] heiglandreas@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2017-01-20 20:59 UTC] heiglandreas@php.net
Is this still relevant?
 [2017-01-29 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 20:01:29 2024 UTC