From: arnaud dot mlist1 at free dot fr Operating system: Linux PHP version: 4.3.2 PHP Bug Type: Apache2 related Bug description: local setting (.htaccess) of upload_max_filesize prevents file uploads to work
Description: ------------ I think the problem is linked to Apache 2.0 but I am not really sure : could be the version of PHP (4.2.2) (but I cannot upgrade : it not my machine...) Everythink works as expected on Apache 1.3 with PHP 4.3.2. The problem : when trying to modify local setting of upload_max_filesize (in local .htaccess), phpinfo() shows the modification as expected, but file uploads don't work anymore (even with very small files of one byte). The function is_uploaded_file ($file) returns false in my scripts. Even when I use locally the same value as in the main php.ini, file uploads fail... If I delete the line from the .htaccess, then everything works fine. I also tried to modify locally other PHP settings to see if the problem was linked to modification of ANY local setting, but file uploads were not affected. I know I should try to run PHP 4.2.2 on my Apache 1.3, to see if things work differently, but I thought I would ask first. Thanks for anyone digging into this problem Expected result: ---------------- $HTTP_POST_FILES['import_file']['tmp_name'] should not be empty Actual result: -------------- $HTTP_POST_FILES['import_file']['tmp_name'] is empty when local setting of upload_max_filesize is used -- Edit bug report at http://bugs.php.net/?id=25873&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25873&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25873&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25873&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25873&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25873&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25873&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25873&r=support Expected behavior: http://bugs.php.net/fix.php?id=25873&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25873&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25873&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25873&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25873&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25873&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25873&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25873&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25873&r=float
