php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36704 missing HTTP_RAW_POST_DATA variable
Submitted: 2006-03-12 10:46 UTC Modified: 2006-03-12 22:37 UTC
From: ifyoumind at yahoo dot com Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.1.2 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ifyoumind at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-03-12 10:46 UTC] ifyoumind at yahoo dot com
Description:
------------
Hi,

  Am trying to use NUSOAP and it requires HTTP_RAW_POST_DATA variable
set. I have both the register_globals and always_populate_raw_post_data
on but still it gives me an error HTTP_RAW_POST_DATA. I read quiet a lot
of forum where almost in all places the question is clear and the answer
still is murky. It doesn't make any sense when
always_populate_raw_post_data turned on when I echo $HTTP_RAW_POST_DATA
it actually gives me an error!

Reproduce code:
---------------
<?php
print_r($_SERVER);//output doesn't have $HTTP_RAW_POST_DATA
print_r($GLOBALS);//output doesn't have $HTTP_RAW_POST_DATA
echo "$HTTP_RAW_POST_DATA"; //actually results in erro
?>

Expected result:
----------------
$HTTP_RAW_POST_DATA should be available it can't be undefined.

Actual result:
--------------
Notice: Undefined variable: HTTP_RAW_POST_DATA in C:\Program Files\Apache Group\Apache2\htdocs\nusoap\myfirst.php on line 4

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-12 22:27 UTC] mike@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2006-03-12 22:37 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Check the always_populate_raw_post_data php.ini setting.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC