Bug #7342 Updated: Different config-op parsing in php.ini and http.conf
| From: | zeev@php.net | Date: | Sun, 06 May 2001 15:45:40 +0000 |
| Subject: | Bug #7342 Updated: Different config-op parsing in php.ini and http.conf | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54119@lists.php.net to get a copy of this message | ||
ID: 7342
Updated by: zeev
Reported By: volker@oops.mayn.de
Old-Status: Analyzed
Status: Closed
Bug Type: Scripting Engine problem
Operating system:
PHP Version: 4.0.3pl1
Assigned To:
Comments:
This is the intended behavior. The special notations that are supported in php.ini are features of
the php.ini parser, and thus, are not available in other configuration options, such as ini_set() or
httpd.conf.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-09 23:35:55] david@php.net
The same applies to the php function ini_set(). It looks like the onmodify entry is being not
found/called from zend_alter_ini_entry and it's using the 'estrndup/value=duplicate'
instead
---------------------------------------------------------------------------
[2000-10-19 11:20:06] volker@oops.mayn.de
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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7342&edit=2