issues upgrading php 5.1.2 to php 5.2.x on Ubuntu 6.06 LTS

i have an install of Virtualmin on Ubuntu 6.06 and one of the sites i am hosting REQUIRES an upgrade to php 5.2.x to allow certain functionality.

the site has a Google Checkout integration that isnt processing the http request recieved from google.

here is the info from the developer of the site.

// This worked perfectly before virtualmin was installed. We were running php 5.2.x (I think it was .3), now we have 5.1.2.

require_once('../protected/defines.inc');

require_once('library/xml-processing/gc_xmlparser.php');

require_once('gresponse.php');

// -- receive the notification from Google ---------

$xml_response = isset($HTTP_RAW_POST_DATA)? $HTTP_RAW_POST_DATA:file_get_contents("php://input"); // Not getting filled after install virtualmin

if(get_magic_quotes_gpc())

$xml_response = stripslashes($xml_response);

$xml = new gc_xmlparser($xml_response);

$data = $xml->GetData();

// ---------------------------------------------------

// figure out what google sent us

$status = 'OK'; // set default status to 'OK'

if(count($data['new-order-notification']))

newOrder($data['new-order-notification'],$xml_response);

else if(count($data['order-state-change-notification']))

orderStateChange($data['order-state-change-notification'],$xml_response);

else if(count($data['risk-information-notification']))

riskInformation($data['risk-information-notification'],$xml_response);

else if(count($data['charge-amount-notification']))

chargeAmount($data['charge-amount-notification'],$xml_response);

else if(count($data['refund-amount-notification']))

refundAmount($data['refund-amount-notification'],$xml_response);

else if(count($data['chargeback-amount-notification']))

chargeBackAmount($data['chargeback-amount-notification'],$xml_response);

else if(count($data['authorization-amount-notification']))

authorizationAmount($data['authorization-amount-notification'],$xml_response);

else

$status = 'ERR';

if('OK' == $status)

header('HTTP/1.0 200 OK');

else

header('HTTP/1.0 400 Bad Request');

?>

Status: 
Closed (fixed)