Bug #62738 [NEW]: max_input_vars and stream upload

From: Date: Fri, 03 Aug 2012 12:07:12 +0000
Subject: Bug #62738 [NEW]: max_input_vars and stream upload
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-172411@lists.php.net to get a copy of this message
From: david at davidsteinsland dot net Operating system: CentOS 6.2 PHP version: 5.4.5 Package: Scripting Engine problem Bug Type: Bug Bug description:max_input_vars and stream upload Description: ------------ When I try to upload files from Java through PHP, the logs give me messages about: Input variables exceeded 6000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0. Test script: --------------- // read file contents from stream, and copy into a temporary file in order to get filesize $putdata = fopen("php://input", "r"); $tmp = tmpfile(); $filesize = stream_copy_to_stream ($putdata, $tmp); fclose ($putdata); // move file to correct position $target = fopen($filepath, "w"); fseek($tmp, 0, SEEK_SET); stream_copy_to_stream($tmp, $target); fclose($target); fclose ($tmp); Actual result: -------------- Input variables exceeded 6000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0. -- Edit bug report at https://bugs.php.net/bug.php?id=62738&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62738&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62738&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62738&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62738&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62738&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62738&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62738&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62738&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62738&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62738&r=support Expected behavior: https://bugs.php.net/fix.php?id=62738&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62738&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62738&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62738&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62738&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62738&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62738&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62738&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62738&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62738&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62738&r=mysqlcfg

« previous php.bugs (#172411) next »