From:             [EMAIL PROTECTED]
Operating system: FreeBSD4.4
PHP version:      4.1.2
PHP Bug Type:     Unknown/Other Function
Bug description:  can't read stdin flowdata neither using php://stdin no 
$HTTP_RAW_POST_DATA

Hi All !

The problem :
1. On client-side i have next script :

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
var Response = new ActiveXObject("MSXML2.DOMDocument");
strxml = "SOME XML..."
xmlhttp.open("POST","http://host/script.php",false);
xmlhttp.setRequestHeader("Content-type","text/xml");
xmlhttp.send(strxml);
alert(xmlhttp.ResponseText);

2. When script.php starts the CONTENT_LENGTH is not null,
its value is NNN bytes.

4. Constructions like :

$fp = fopen("php://stdin","r");
$data=fread($fp,$HTTP_SERVER_VARS{'CONTENT_LENGTH'});
fclose($fp);
echo $data;

or

echo $HTTP_RAW_POST_DATA;

don't work. They return null :-(

4. In PHP.INI always_populate_raw_post_data = On

Anybody knows what's happened ?

-- 
Edit bug report at http://bugs.php.net/?id=16485&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16485&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16485&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16485&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16485&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16485&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16485&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16485&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16485&r=submittedtwice

Reply via email to