#44483 [Opn->Bgs]: Integer values in php.ini does not accepts values larger than 2G (or LONG_MAX)

From: Date: Fri, 07 Nov 2008 10:53:26 +0000
Subject: #44483 [Opn->Bgs]: Integer values in php.ini does not accepts values larger than 2G (or LONG_MAX)
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1416@lists.php.net to get a copy of this message
ID: 44483 Updated by: vrana@php.net Reported By: arnaud dot lb at gmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment: 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." Previous Comments: ------------------------------------------------------------------------ [2008-03-19 16:38:27] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44483&edit=1

« previous php.doc.bugs (#1416) next »