From: scm at apsag dot com Operating system: any PHP version: 5.2.9 PHP Bug Type: Feature/Change Request Bug description: verification of Content-Length
Description: ------------ When data is posted by HTML, there's a single way to verify the content is complete: the content-length. But since PHP reinterpretes the incoming data, there's no way to verify the data in the $_POST variable reached the announced length. It would be a good idea to provide a superglobal variable that would flag an interrupted transmission. Reproduce code: --------------- any post code announcing more data than it really transmits and then closes the connection. -- Edit bug report at http://bugs.php.net/?id=48397&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48397&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48397&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48397&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48397&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48397&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48397&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48397&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48397&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48397&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48397&r=support Expected behavior: http://bugs.php.net/fix.php?id=48397&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48397&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48397&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48397&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48397&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48397&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48397&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48397&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48397&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48397&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48397&r=mysqlcfg