#47889 [NEW]: upload_max_filesize not taking effect but other variables are
| From: | kmcgrail at apache dot org | Date: | Fri, 03 Apr 2009 15:49:26 +0000 |
| Subject: | #47889 [NEW]: upload_max_filesize not taking effect but other variables are | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-135525@lists.php.net to get a copy of this message | ||
From: kmcgrail at apache dot org
Operating system: Linux
PHP version: 5.2.9
PHP Bug Type: *Configuration Issues
Bug description: upload_max_filesize not taking effect but other variables are
Description:
------------
I believe there is a bug, perhaps in phpinidir, where a specified php.ini
file is not 100% parsed. Specifically, I am able to override many of the
items but not the upload_max_filesize.
Using this in httpd.conf:
PHPIniDir /htdocs/<specific dir>/php.ini
Changing variables in this ini file affects the phpinfo() command.
For example, I can enable the ZendOptimizer, I can change post_max_size,
etc.
Changing variables in the default php.ini does NOT take effect.
In short, I firmly believe I am editing the correct ini file.
However, changing upload_max_filesize or upload_tmp_dir has NO effect on
the phpinfo() / program functionality.
Using .htaccess or editing httpd.conf to add something like the following,
DOES work:
php_value upload_max_filesize 5M
To Reproduce the problem:
copy default ini to an alternate location:
Specify an alternate ini in httpd.conf
PHPIniDir /htdocs/<specific dir>/php.ini
write a quite phpinfo() script
View the script and confirm Loaded Configuration File matches the
specified ini file.
Modify specified php.ini to edit upload_max_filesize and upload_tmp_dir.
Restart server and view phpinfo() script.
No changes are reflected.
If the server does NOT use the command
PHPIniDir /htdocs/<specific dir>/php.ini
then editing the default php.ini in /usr/local/php-apache2/lib/php.ini
DOES work
One final note:
Comparing the phpinfo() output from a specified ini install and a
non-specified install show one more oddity.
The section of the phpinfo() on the specified and the default matches with
this text:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
BUT the specified one is missing the Powered by Zend Engine 2 logo.
Perhaps this will help deduce where the issue lies.
--
Edit bug report at http://bugs.php.net/?id=47889&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47889&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47889&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47889&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47889&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47889&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47889&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47889&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47889&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47889&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47889&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47889&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47889&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47889&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47889&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47889&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47889&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47889&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47889&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47889&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47889&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47889&r=mysqlcfg