#39789 [NEW]: $_POST data not accessible

From: Date: Sun, 10 Dec 2006 18:52:53 +0000
Subject: #39789 [NEW]: $_POST data not accessible
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106165@lists.php.net to get a copy of this message
From: mpaige at ryanidirect dot com Operating system: Windows 2003 /XP sp2 PHP version: 5.2.0 PHP Bug Type: *General Issues Bug description: $_POST data not accessible Description: ------------ $_POST variable unavailable while $_GET is. Reproduce code: --------------- // FAIL: This returns -1 if(isset($_POST['senderName'])){ $msg = 1; } else { $msg = -1; } echo $msg; <form action="sendCard.php" method="POST"> <input name="senderName" value="" type="text" size="60" maxlength="60" /><br /> <input name="send" type="submit" /><br /> </form> If I change the from to GET and look for a GET // SUCCESS: This returns 1 if(isset($_GET['senderName'])){ $msg = 1; } else { $msg = -1; } echo $msg; <form action="sendCard.php" method="GET"> <input name="senderName" value="" type="text" size="60" maxlength="60" /><br /> <input name="send" type="submit" /><br /> </form> Expected result: ---------------- Both should return 1. Actual result: -------------- -1 on $_POST. INI is relatively untouched past standard dir paths and cgi redirect disable, no 3rd party extensions. looks like "#37276 problems witch $_POST array" but not fixed in windows... -- Edit bug report at http://bugs.php.net/?id=39789&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39789&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39789&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39789&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39789&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39789&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39789&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39789&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39789&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39789&r=support Expected behavior: http://bugs.php.net/fix.php?id=39789&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39789&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39789&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39789&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39789&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39789&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39789&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39789&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39789&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39789&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39789&r=mysqlcfg

« previous php.bugs (#106165) next »