php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44941 Post data size limited to 60k even when post_max_size = 20M
Submitted: 2008-05-08 05:27 UTC Modified: 2008-07-13 16:59 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: enadyo at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.5 OS: CENTOS
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: enadyo at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-05-08 05:27 UTC] enadyo at hotmail dot com
Description:
------------
OS: CENTOS, PHP 5.2, APACHE 2.1
At PHP.INI memory_limit is set to 20M
post_max_size is set to 20M
the same goes for maximum upload

however everything larger than 60K is cut off.

in another server with PHP 4.x everything works perfect even with huge amounts of data


Please tell me if you want to see PHP.INI for ...verification. I'll be glad to copy/paste it.

Reproduce code:
---------------
the code is simple:
<form action=target.php method=post>
<textarea name=a1></textarea>
<button type=submit>send</button>
and for the target.php
<?
$a1=$_REQUEST['a1'];
echo $a1;
?>

Expected result:
----------------
the text (larger than 60.000 characters) to be displayed on screen

Actual result:
--------------
blank screen (nope, not because of an error, but because the variable is null)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-08 10:54 UTC] jani@php.net
Jani: IIRC there was some Apache configuration thing that might interfere with this. (Note: This is reminder for myself, ignore :)
 [2008-05-10 23:06 UTC] jani@php.net
Couple of questions: What was the configure line used to configure PHP?
What Aapche MPM are you using? What PHP SAPI? Do you set any php.ini options in some .htaccess file or in your httpd.conf? Check the phpinfo() output 
 [2008-05-25 21:39 UTC] enadyo at hotmail dot com
I apologize for the delay, I was abroad.

I've recompiled Apache. It's 2.2.8 now but it has the same problem. I've also tried to downgrade PHP (to 5.2.3) but nothing...

Everything happens under CPANEL and WHM cpeasyApache so I don't understand "What Apache MPM are you using? What PHP SAPI?" questions.

Php.ini is altered only to increase maximum size of uploaded file etc. but not by hand. There are some checkboxes and textboxes in cpanel's WHM.

.htacces is not altered.

I'm just recompiling (I try to find the common elements which may point out the problem). When finished I'll copy/paste the phpinfo()
 [2008-05-26 20:27 UTC] jani@php.net
Please don't add full phpinfo() output here but rather a link to a place where the info can be seen.
 [2008-05-26 22:33 UTC] enadyo at hotmail dot com
phpinfo:
http://www.alfavita.gr/myphp.php 

testing page:
http://www.alfavita.gr/errata.php

In the new compile I've lowered limits to 8M in case it would do any good (it didn't).
 [2008-05-26 23:56 UTC] jani@php.net
Neither of those links work.
 [2008-06-03 22:18 UTC] enadyo at hotmail dot com
I'm sorry to say that but ...you have some problem with your conection. Just to be sure I've tried the links with www.megaproxy.com and they work allright all over the world. It might have to do something with your firewall. Please try again or use www.megaproxy.com 
phpinfo:
http://www.alfavita.gr/myphp.php 

testing page:
http://www.alfavita.gr/errata.php
 [2008-06-05 18:54 UTC] jani@php.net
What if you try this script as target.php:

<?php var_dump($_REQUEST); ?>



 [2008-06-05 18:56 UTC] jani@php.net
And usually using proper HTML (With quotes around parameter values) helps too. 
 [2008-06-06 13:53 UTC] enadyo at hotmail dot com
Aw it concerns HTML quotes: 
a) It doesn't work either way
b) I remind you that this is a bug report and not a "I can't program" report.

The very same code works in other servers. e.g.:
http://www.xpert.gr/errata.php
Please note that this server runs on PHP 4.3.9 which is no longer supported. Please read http://www.xpert.gr/myphp.php in order to compare php infos

I've added the variable dumbing to target.php as you've said but it's still null on PHP 5.2.5 Apache/centos server and works fine on PHP 4.3.9 server

Netcraft's report :
Problematic server: Apache/2.2.8 Unix mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 PHP/5.2.5

Is it possible that the problem maybe caused by CENTOS since the working server runs REDHAT? Can you crossreference or even prove such an assumption?

(be careful: I'm just guessing)

I assume that something conflicts with something but with what remains a mystery.
 [2008-06-09 08:57 UTC] jani@php.net
FYI: I myself run a Centos server with PHP 5.2.6 without any problems.
There's something wrong with your setup or something similar. 
 [2008-06-10 10:44 UTC] enadyo at hotmail dot com
Thank you for the input. This complicates the problem. Let?s do some differential diagnosis.

The problem is caused by: PHP configuration and/or Apache configuration and/or the code.

As expert you don?t see any problem with PHP configuration.
The code works in 2 other servers (with minor versions of PHP I should remark)
Apache is compiled (because of this very problem) without any tweaking because in my experience 99,99% of the problems occur because of a user?s error.
So IMHO it?s either Apache (but what in Apache?) or the code in this version of PHP. To exclude the second part, would you be so kind to provide me some code to type in the test page to see if it works in this particular version of PHP? Then if it won?t work it should be either Apache or a PHP bug.

Thank you.

P.S. I?ll be abroad (in Deutschland) for the next 8 days so please don?t expect my response soon.)
 [2008-06-10 23:38 UTC] jani@php.net
Just ditch Apache and start using something much better: Lighttpd + PHP as FastCGI. That's propably the difference here.
 [2008-06-21 13:46 UTC] enadyo at hotmail dot com
Oh! Oh! 
If this is the only way to correct the problem...

Is there any page with detailed info about installing it? I've found:
http://trac.lighttpd.net/trac/wiki/TutorialLighttpdAndPHP

I'll give it a try. Wish me luck

(Aristoteles wrote that luck helps only the prepared one).
 [2008-07-13 16:59 UTC] jani@php.net
This is definately not any PHP bug. It's just one of those Apache modules misbehaving, or some combination of them being incompatible.
 [2024-03-29 10:13 UTC] info at anavasis dot gr
We have resolved all issues for www.anavasis.gr

Thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 14:01:35 2025 UTC