Doc #50684 [Com]: max_file_uploads can't be changed from .htaccess (or ini_set)

From: Date: Tue, 28 Sep 2010 19:39:05 +0000
Subject: Doc #50684 [Com]: max_file_uploads can't be changed from .htaccess (or ini_set)
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5137@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=50684&edit=1 ID: 50684 Comment by: guy dot paddock at redbottledesign dot com Reported by: john dot peterson10 at gmail dot com Summary: max_file_uploads can't be changed from .htaccess (or ini_set) Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Windows PHP Version: 5.2.12 Assigned To: aharvey Block user comment: N New Comment: Define "can of worms" with regard to this setting. I'm sorry, but... umm... doesn't allowing sites to override *any* setting (including memory_limit) have the possibility of bad things happening? And, yet, we allow that. It is strange to me how for some reason this one setting that so many people are now having trouble with is not allowed to be overridden at the reasonable level of per-site, or per-folder. If people are really concerned about locking-down the setting on their server, they can use php_admin_value in the INI. As for me, like the rest of the developers who've encountered this botched feature, it's getting disabled until it's fixed. I have a rash of users upset that they can't upload more than 20 pictures per post, and I don't see how raising that limit to 300 server-wide would be any better. Previous Comments: ------------------------------------------------------------------------ [2010-03-05 04:37:39] aharvey@php.net This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. ------------------------------------------------------------------------ [2010-03-05 04:36:46] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=295841 Log: Fix bug #50684 (max_file_uploads can't be changed from .htaccess (or ini_set)) by changing the documentation to reflect max_file_uploads being PHP_INI_SYSTEM, not PHP_INI_ALL as previously documented. ------------------------------------------------------------------------ [2010-03-04 20:04:48] steven at realestatewebmasters dot com Can we at least get the documentation changed? Currently it says PHP_INI_ALL which would include htaccess and ini_set. ------------------------------------------------------------------------ [2010-01-07 10:15:21] jani@php.net Allowing that to be changed would open a can of worms. ------------------------------------------------------------------------ [2010-01-07 08:33:59] john dot peterson10 at gmail dot com Description: ------------ The setting max_file_uploads can't be changed from .htaccess. I think it should be possible to change max_file_uploads, like it's possible to change upload_max_filesize, post_max_size and max_input_time from .htaccess. Reproduce code: --------------- @.htaccess php_value max_file_uploads 50 @settings.php <?PHP ini_set('max_file_uploads', "50"); echo "max_file_uploads: " . ini_get('max_file_uploads'); ?> Expected result: ---------------- max_file_uploads is changed to 50 Actual result: -------------- max_file_uploads is not changed from its default (or php.ini) value ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=50684&edit=1

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