From: php at bitrockers dot de Operating system: Linux Debian Etch PHP version: 5.2.2 PHP Bug Type: HTTP related Bug description: $_POST not filled, altough raw POST is available
Description: ------------ Maybe this bug is related to Bugs 31417 and 41293. But I'm not sure, because this bug occurs in 5.2.0 and 5.2.2. The problem is: When sending POST requests via the XmlHttpRequest active-x, on some IE6 installations this won't work properly. The POST request is successfully sent to our webserver, and the raw http post data is filled correctly, but the $_POST array is not filled with any information. I can only guess that the error has something to do with some special headers/encoding (Content-Length?) which is done by the XmlHttpRequest-ActiveX on some IE6 installations. And: Yes, I know that it's hard to find the reason for this behaviour. And it's not easy to reproduce this bug ( because on most IE6 installations everything works fine). But I guess it's worth to take a look at the php-source, so that someone may get an idea which could cause this bug. I'm trying to help you as much as possible. Unfortunately I cannot reproduce the error by myself, so I have to ask the affected customers each time we 'possibly' fixed the bug. There must be a bug in php, because the raw-http request is filled correctly (and we don't touch the $_POST var anywhere else in our code). Reproduce code: --------------- var_export($_POST); $rawPost = file_get_contents('php://input'); echo "\n$rawPost"; Expected result: ---------------- array('postVar1' => 'postValue1', 'postVar2' => 'postValue2') postVar1=postValue1&postVar2=postValue2 Actual result: -------------- array() postVar1=postValue1&postVar2=postValue2 -- Edit bug report at http://bugs.php.net/?id=41349&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41349&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41349&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41349&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41349&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41349&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41349&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41349&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41349&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41349&r=support Expected behavior: http://bugs.php.net/fix.php?id=41349&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41349&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41349&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41349&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41349&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41349&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41349&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41349&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41349&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41349&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41349&r=mysqlcfg