ID:               18765
 Comment by:       alex at alexmreis dot com
 Reported By:      dannysy at hotmail dot com
 Status:           No Feedback
 Bug Type:         *General Issues
 Operating System: Windows 95
 PHP Version:      4.2.2
 New Comment:

K, for anyone still having a problem with this, as I had yesterday,
replace the use of $_POST for the following function:

function decodePost(){
        $var = file_get_contents('php://input');
        $postContent = explode('&',$var);
        for($i = 0; $i < count($postContent); $i++){
                $postContent[$i] = urldecode($postContent[$i]);
                $map = explode('=', $postContent[$i]);
                $post[$map[0]] = $map[1];
        }
        return $post;   
}

It does not process arrays like PHP though, but still a fine workaround
on an unsolved bug even on PHP 5.


Previous Comments:
------------------------------------------------------------------------

[2003-02-04 16:26:24] s dot franke at bebbosoft dot de

Using php.exe as CGI under WindowsXP and
PHP 4.3.0 or PHP 4.2.3 leads me to same problem:

Settings in PHP.ini:
register_globals = On
always_populate_raw_post_data = Off

_POST is not initialized.

CONTENT_TYPE is "multipart/form-data"

What I also detect: PHP does not touch the POST data - you can read the
POST data manually:

  $fp = fopen("php://stdin", "r");
  $buf = fread($fp, $_ENV["CONTENT_LENGTH"]);
  echo ">>>".$buf."<<<";

Displays the complete data.

------------------------------------------------------------------------

[2002-12-15 14:43:28] markus at markus dot dom dot de

i have the same problem with apache 2.0.43 and php-4.3rc3

checkout here: http://markus.dom.de/test/testform.html

if you like.

markus

------------------------------------------------------------------------

[2002-11-05 14:04:42] nylbog at freemail dot hu

Having the same problem under winXP PHP 4.2.3

------------------------------------------------------------------------

[2002-10-17 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2002-10-01 20:39:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/18765

-- 
Edit this bug report at http://bugs.php.net/?id=18765&edit=1

Reply via email to