#31417 [NEW]: $HTTP_RAW_POST_DATA but $_POST not populated

From: Date: Wed, 05 Jan 2005 14:55:35 +0000
Subject: #31417 [NEW]: $HTTP_RAW_POST_DATA but $_POST not populated
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71485@lists.php.net to get a copy of this message
From: j-spam at starline dot ee Operating system: Linux PHP version: 5.0.3 PHP Bug Type: Variables related Bug description: $HTTP_RAW_POST_DATA but $_POST not populated Description: ------------ $_POST is not populated, however $HTTP_RAW_POST_DATA is. lighttpd 1.3.5 using cgi (not fcgi) CGI-PHP5 5.0.3 Firefox 1.0 Reproduce code: --------------- $_POST: <?php print_r($_POST); ?><br> $HTTP_RAW_POST_DATA: <?php print_r($_HTTP_RAW_POST_DATA); ?><br><br> <form action="<?=$_SERVER["PHP_SELF"] ?>" method="post"> <textarea name="duh"><?=$_POST["duh"];?></textarea> <input type="submit" /> </form> Actual result: -------------- $_POST: Array ( ) $HTTP_RAW_POST_DATA: bla=asdf&duh=eeca%0D%0Aasdf%0D%0Aasdf -- Edit bug report at http://bugs.php.net/?id=31417&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31417&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31417&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31417&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31417&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31417&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31417&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31417&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31417&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31417&r=support Expected behavior: http://bugs.php.net/fix.php?id=31417&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31417&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31417&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31417&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31417&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31417&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31417&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31417&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31417&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31417&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31417&r=mysqlcfg

« previous php.bugs (#71485) next »