php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44483 Integer values in php.ini does not accepts values larger than 2G (or LONG_MAX)
Submitted: 2008-03-19 16:38 UTC Modified: 2008-11-07 10:53 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: arnaud dot lb at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
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: arnaud dot lb at gmail dot com
New email:
PHP Version: OS:

 

 [2008-03-19 16:38 UTC] arnaud dot lb at gmail dot com
Description:
------------
Integer values in php.ini does not accepts values larger than 2G (or 
LONG_MAX ?).

This should be documented somewhere.


Reproduce code:
---------------
Set post_max_size to 2048M

Expected result:
----------------
post_max_size == 2048M

Actual result:
--------------
post_max_size == -2048M

Submiting a form with the POST method show the following line in the 
error log: (and $_POST is empty)
PHP Warning:  POST Content-Length of 566 bytes exceeds 
the limit of -2147483648 bytes in Unknown on line 0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 10:53 UTC] vrana@php.net
Every configuration directive denotes its type. The integer type specifies its limits: "The size of an integer is platform-dependent, although a maximum value of about two billion is the usual value (that's 32 bits signed). PHP does not support unsigned integers."
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 22:00:01 2026 UTC