ID:               33655
 Updated by:       [EMAIL PROTECTED]
 Reported By:      gzsolt at yahoo dot com
 Status:           Feedback
 Bug Type:         CGI related
 Operating System: Windows XP SP1
 PHP Version:      4.3.11
 New Comment:

Actually the question was to the original reporter.

I doubt that we support some "handmade" servers, so try regular Apache
first.


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

[2005-07-12 15:32:37] mgazza2 at hotmail dot com

we use our own self made win32 web servers running on windows xp. i
have tried with php 4.4.0, 4.3.10, 4.3.8, 4.3.11.

try testing this http://solar-software.ath.cx/posttest.html

sample php script

<?php
echo '<b>HTTP_RAW_POST_DATA</b>  '.$HTTP_RAW_POST_DATA;
echo '<br /><b>HTTP_POST_VARS</b>  '.$HTTP_POST_VARS;
echo '<br /><b>_POST</b>  '.$_POST;
echo '<br /><b>_SERVER["CONTENT_LENGTH"]</b> 
'.$_SERVER["CONTENT_LENGTH"];
echo '<br /><b>_SERVER["CONTENT_TYPE"]</b> 
'.$_SERVER["CONTENT_TYPE"];
echo '<br /><b>_SERVER["GATEWAY_INTERFACE"]</b> 
'.$_SERVER["GATEWAY_INTERFACE"];
 ?>

sample perl script

print "Content-type: text/html\n\n";
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
print "<b>Perl STDIN contains</b>  ".$buffer;
exit(0);

regards mark,

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

[2005-07-12 15:12:58] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


What webserver do you use? Did you try with PHP 4.4.0? Can you provide
a short reproduce script? Can you try to run the same code with
non-Windows OS?

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

[2005-07-12 15:06:19] mgazza2 at hotmail dot com

i have also encountered this problem i also use my own web server(one i
wrote) the problem is php is not compling with cgi/1.1 php waits for
return to be pressed in other words we have to write $0A $0D(#13#10) at
the end of the stdin and add 2 bytes to the envar Content_Length which
to me is stupid perl and cgi all work without adding these bytes php
!should! by saying they suport cgi/1.1 read the length of bytes in the
stdin suplied in the Content_Length envar

regards mark

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

[2005-07-12 12:00:06] gzsolt at yahoo dot com

Description:
------------
I am using PHP 4.3.11 under Windows XP. I run the CGI version from my
own webserver (meaning i wrote it). The CGI support is OK i my
webserver, other CGI programs working fine. The problem is the
following: a simple login forms posts data to a php page. The webserver
gets, the request inc. post data. It start php, sends the post data
trough STDIN. PHP reads out all data from STDIN (Content-Length bytes),
it gets to the $HTTP_RAW_POST_DATA variable, but the $_POST and
$HTTP_POST_VARS arrays remaining empty! I have no clue what could cause
this problem, possibly not a bug at all, but i did not find any problem
in my php config (i can post it, if needed).



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


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

Reply via email to