$_POST superglobal empty, while readfile("php://input") does return data.

From: Date: Sat, 03 Nov 2007 16:04:28 +0000
Subject: $_POST superglobal empty, while readfile("php://input") does return data.
Groups: php.general 
Request: Send a blank email to php-general+get-264011@lists.php.net to get a copy of this message
Hey all! Im trying to submit a very basic form to phpinfo(): <form action='?' method='POST'> <input type='hidden' name='foo' value='bar' /> <input type='submit' /> </form> <?php error_reporting(E_ALL); echo 'var_dump: '; var_dump($_POST); echo '<br>readfile: '; readfile("php://input") phpinfo(); ?> When i use the button to submit the form and it loads the new page I get: var_dump: array(0) { } readfile: foo=bar I would expect the $_POST var to be filled cause the readfile does work. Also, get requests, cookies and sessions do work... all cept for the POST data. I couldn't find any errors in the apache error_log. I think it's not browser related because I tested it another server and it did work using FF and IE7. Im using PHP Version 5.2.4_p20070914-pl2-gentoo, with suhosin and the ZendOptimizer on Linux AMD64. I've also set the max_post and max_upload to 1024M for testing... Nothing works... :( Does anyone have a direction for me? Been using php for years but have never seen anything like this... Thanks! -Mackatack

« previous php.general (#264011) next »