php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45328 post_max_size of 6144M of greater causes $_POST to fail
Submitted: 2008-06-21 19:06 UTC Modified: 2008-07-21 21:03 UTC
From: corry dot gellatly at ncl dot ac dot uk Assigned: thiago (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.2.6 OS: Linux (Fedora Core 8)
Private report: No CVE-ID: None
 [2008-06-21 19:06 UTC] corry dot gellatly at ncl dot ac dot uk
Description:
------------
Setting post_max_size to a value of 6144M or greater causes $_POST to fail, for example to log in and start a session with the simple code below:  

<?php
session_start();
$username = $_POST['username'];

$password = $_POST['password'];
...etc.
?>

It will also cause the login to phpMyAdmin to fail with the error message:

Warning: Unknown: POST Content-length of 81 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0

At a guess, perhaps to due to the post_max_size variable type? Although 6144M is perhaps an excessive post size maximum, a comment in the php.ini file warning of the maximum limit would be helpful.   



Reproduce code:
---------------
Can be reproduced with the index.php page of phpMyAdmin 2.10.0.2 and above

Expected result:
----------------
Failed login when post_max_size >= 6144M


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-15 02:46 UTC] jani@php.net
You're just hitting the limit of 32bit signed integer.
M in php.ini's is converted to 1024 * 1024 and 6144M == 6144 * 1024 * 1024. 

Supported ini "helpers" are:

G = 1024 * 1024 * 1024 (giga)
M = 1024 * 1024 (mega)
K = 1024 (kilo)

 [2008-07-21 21:03 UTC] thiago@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Sep 08 14:00:01 2025 UTC