php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20509 $_SERVER['HTTP_RAW_POST_DATA'] not equivalent to $HTTP_RAW_POST_DATA
Submitted: 2002-11-19 18:06 UTC Modified: 2002-11-19 18:44 UTC
From: phpcoder at chaska dot org Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.2.2 OS: FreeBSD 4.6.2
Private report: No CVE-ID: None
 [2002-11-19 18:06 UTC] phpcoder at chaska dot org
Environment:
Apache 1.3.26 on FreeBSD 4.6.2 with mod_php 4.2.2
register_globals is off and always_populate_raw_post_data is defaulted to off (phpinfo() says "0").

I'm trying to use nuSOAP (http://sourceforge.net/projects/nusoap/).  The final line of a server is typically something like:
$server->service($_SERVER['HTTP_RAW_POST_DATA']);

Only thing is, it doesn't work.  It *does* work if one states it this way:
$server->service($HTTP_RAW_POST_DATA);

Shouldn't the super-global be exactly the same as the environment variable?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-19 18:44 UTC] philip@php.net
This variable does not live in $_SERVER or any superglobal for that matter.  It's its own variable.  

The documentation is being worked out as there is still a question on when this variable should exist.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC