From: xuefer at 21cn dot com Operating system: all PHP version: 4.3.7 PHP Bug Type: Feature/Change Request Bug description: function to check if POST data is complete
Description: ------------ due to network issue, or stopped by user the content submitted by user maybe incomplete; there should be a way to check it. it's serious if the admins submit a incomplete post data. that will do unrecoverable damage. i'd like if there's a function: int content_is_complete() which return strlen(content) == Content-Length; yes, we can do '<input type=hidden value=1 name=complete></form>', and do isset($_POST['complete']) but this is not easy for those html-designers to add it each <form> by hand '<input type=submit name=submit>', and do isset($_POST['submit']), but not all "submit" is the last element of form -- Edit bug report at http://bugs.php.net/?id=28864&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28864&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28864&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28864&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28864&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28864&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28864&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28864&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28864&r=support Expected behavior: http://bugs.php.net/fix.php?id=28864&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28864&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28864&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28864&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28864&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28864&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28864&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28864&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28864&r=float