PHP 4.0 Bug #7342: Different config-op parsing in php.ini and http.conf
| From: | volker at oops dot mayn dot de | Date: | Thu, 19 Oct 2000 15:20:06 +0000 |
| Subject: | PHP 4.0 Bug #7342: Different config-op parsing in php.ini and http.conf | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35539@lists.php.net to get a copy of this message | ||
From: volker@oops.mayn.de
Operating system: RedHat 6.2/Linux 2.2
PHP version: 4.0.3pl1
PHP Bug Type: PHP options/info functions
Bug description: Different config-op parsing in php.ini and http.conf
In php.ini for setting the upload_max_filesize one can use abbrevations for certain amounts of bytes
(e.g. M for 'Megabytes'). The line
upload_max_filesize = 15M
means 15 * 1024 * 1024 Bytes are allowed.
When using the
php_value upload_max_filesize 15M
directive in apache httpd.conf the 'M' modifyer is *NOT* used, leading to actually setting
the max. file size for uploads to only 15 Bytes, not 15 MB.
One has to use 15728640 (i.e. 15 * 1024^2) to set the value to 15 MB.
--
Edit Bug report at: http://bugs.php.net/?id=7342&edit=1