From: scott at phphq dot net Operating system: Win Server 2003 x86 / IIS 6 PHP version: 5.4.3 Package: Session related Bug Type: Bug Bug description:Session upload progress returns empty array if files larger than post_max_size
Description: ------------ I am submitting this as a bug because PHP will instantly return an empty $_SESSION array if the file size sum of all uploaded files is larger than allowed by post_max_size or upload_max_filesize even though the browser continues to upload. I would expect that PHP would automatically cancel these uploads, or at least return an error so I can use $_SESSION[key]['cancel_upload']; myself. I'm on PHP 5.4.3, Win Server 2003 x86, IIS6 as fast_cgi. session.upload_progress.cleanup is turned off so I could try and debug this. It's not happening because of the cleanup process. Test script: --------------- Here is what you can use to duplicate the issue: http://phphq.net/_upbug/ Expected result: ---------------- I would expect some sort of error. Actual result: -------------- Null responce -- Edit bug report at https://bugs.php.net/bug.php?id=62317&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62317&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62317&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62317&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62317&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62317&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62317&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62317&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62317&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62317&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62317&r=support Expected behavior: https://bugs.php.net/fix.php?id=62317&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62317&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62317&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62317&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62317&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62317&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62317&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62317&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62317&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62317&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62317&r=mysqlcfg