ID: 31417
Comment by: mgb at matthewbelden dot com
Reported By: j-spam at starline dot ee
Status: No Feedback
Bug Type: CGI related
Operating System: Linux
PHP Version: 5.0.3
New Comment:
This workaround did it for me, the above did not.
$pattern = "/\n/";
$replace = "&";
$GLOBALS['HTTP_RAW_POST_DATA'] = preg_replace($pattern, $replace,
$GLOBALS['HTTP_RAW_POST_DATA']);
if (isset($GLOBALS['HTTP_RAW_POST_DATA']) && !count($_POST))
parse_str($GLOBALS['HTTP_RAW_POST_DATA'] , $_POST);
Previous Comments:
------------------------------------------------------------------------
[2006-05-16 15:23:38] fabiovh at nospammers dot gmail dot com
//workaround
if (isset($GLOBALS['HTTP_RAW_POST_DATA']) && !count($_POST))
parse_str($GLOBALS['HTTP_RAW_POST_DATA'] , $_POST);
------------------------------------------------------------------------
[2006-05-15 14:53:58] baker195 at btinternet dot com
I'm writing an AJAX application and after using the XLMHttpRequest
object to post the data to my server side PHP script, I have to extract
the data from $HTTP_RAW_POST_DATA as $_POST is empty.
------------------------------------------------------------------------
[2005-07-18 07:03:55] robbhammack at gmail dot com
I'm also having this issue. $_GET and $HTTP_RAW_POST_DATA are
populated, but $_REQUEST and $_POST are not.
I'm trying to develop an application for php5 but whithout being able
to post form data, I'm going to have to go back to php4 which would be a
real shame.
OS is win2K xp2
PHP Version 5.1.0b3
System Windows NT MINERVA 5.1 build 2600
Build Date Jul 14 2005 20:32:24
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path
C:/Development/programs/php5/php.ini
PHP API 20041225
PHP Extension 20050617
Zend Extension 220050617
Apache Version Apache/2.0.53 (Win32) PHP/5.1.0b3 DAV/2
Apache API Version 20020903
Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_access
mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dav
mod_dav_fs mod_dir mod_env mod_imap mod_include mod_info mod_isapi
mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir
mod_php5
------------------------------------------------------------------------
[2005-03-08 01:00:26] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
------------------------------------------------------------------------
[2005-03-01 18:18:03] csaba at alum dot mit dot edu
Huge problem. This just started happening on my Win XP Pro (SP 2)
machine - checked with both the Feb 28 snapshots and March 1 snapshots.
It was not happening on the Feb 19 snapshots, but I think it might be
going on since Feb 25 because of: http://bugs.php.net/bug.php?id=32109
I am using Apache 2.0.53 and I have php.ini in c:\windows.
Besides that I have the following 4 files in c:\winapps\php.net\latest:
php.exe, php-win.exe, php5ts.dll, and php5apache2.dll, a fairly
minimalistic setup.
Csaba Gabor from Vienna
------------------------------------------------------------------------
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/31417
--
Edit this bug report at http://bugs.php.net/?id=31417&edit=1