PDA

View Full Version : Problem with PHP 5.2.2 and SOAP


vogelor
28th May 2007, 16:08
Because i have no right to post at the developer forum, i post it here!

there is a bug in PHP 5.2.2 ans SOAP. Because there is as bug, so that
$HTTP_RAW_POST_DATA is always empty. So if u are using PHP 5.2.2 you have to code:

/**
* BUG in PHP 5.2.2 umgehen ($HTTP_RAW_POST_DATA ist IMMER LEER!!!)
*/
if (strpos(phpversion(), '5.2.2') !== false)
{
$HTTP_RAW_POST_DATA = file_get_contents("php://input");
}

the same for $POST[HTTP_RAW_POST_DATA].

and i think this will stop your remote framewort from working!

Olli

payne
16th June 2007, 14:19
Sorry for stupid question,but where i need to code this for remote framework to work

/**
* BUG in PHP 5.2.2 umgehen ($HTTP_RAW_POST_DATA ist IMMER LEER!!!)
*/
if (strpos(phpversion(), '5.2.2') !== false)
{
$HTTP_RAW_POST_DATA = file_get_contents("php://input");
}

?