#18759 [Opn->Fbk]: HTTP_POST_VARS, _POST all empty

From: Date: Wed, 07 Aug 2002 07:22:10 +0000
Subject: #18759 [Opn->Fbk]: HTTP_POST_VARS, _POST all empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16119@lists.php.net to get a copy of this message
ID: 18759 Updated by: yohgaki@php.net Reported By: miker@sundialservices.com -Status: Open +Status: Feedback -Bug Type: Apache related +Bug Type: Variables related Operating System: Linux RH 7.3 PHP Version: 4.1.2 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. In certain case, variables will not be initilized properly, but it does not supposed to behave as you mentioned. Try CvS versions see if it helps. Previous Comments: ------------------------------------------------------------------------ [2002-08-06 13:47:20] miker@sundialservices.com Hmm... with this simple test-form: <?php print serialize($_POST) ?> <form action="test.php" method="post" enctype="multipart/form-data"> <input type="text" name="test" value="123"> <input type="submit" name="submit" value="test123"> </form> It does not work at all when "enctype" is included, but if I remove this and save the file, then click "test123" TWICE, it suddenly works. Likewise when I put "enctype" back in, and click the button TWICE, on the second attempt it doesn't work. Even -more- strangely, I'm changing the input each time as I click the button. First click after the change... it works, and the new data appears. Second click... it stops working. Remove "enctype." Change and click. It's there. Change again and click. No data. Put it back in. Change and click. Nada. Change and click AGAIN. It's there!! What the ...? ------------------------------------------------------------------------ [2002-08-06 13:32:33] miker@sundialservices.com As previously reported (but closed as "bogus?!") PHP loses all HTTP "POST" variables submitted on a simple form (that works in earlier versions). Both the $HTTP_POST_VARS and the $_POST variable are completely empty. A trivially simple form confirms this behavior. (See prior bug reports.) register_globals is ON. safe_mode is OFF. If you -know- that this bug does not exist in PHP 4.2 then I'll be happy to wrestle with trying to upgrade to it. But I need to -know-. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18759&edit=1

« previous php.bugs (#16119) next »