CMS MADE SIMPLE FORGE

Authorize.Net AIM

 

[#7755] Version 1.4 is not compatible with PHP5 for ARB transactions

avatar
Created By: Prue Rowland (psy)
Date Submitted: Wed Mar 28 03:15:58 -0400 2012

Assigned To:
Version: 1.4
CMSMS Version: 1.10.3
Severity: None
Resolution: None
State: Open
Summary:
Version 1.4 is not compatible with PHP5 for ARB transactions
Detailed Description:
The response XML from Authorize.Net does not parse correctly as PHP5 inserts
header information before the xml data.

Quick fix solution in function.process_subscription.inc.php around line 173:


// Get rid of the rubbish at the start of the result string
// and just get the XML from the response, bypassing the header
if (!($xmlstring = strstr($result, '<?xml'))) {
        $xmlstring = null;
}

$xml = simplexml_load_string($xmlstring);

//  $xml = new SimpleXMLElement($result,LIBXML_NOWARNING);


History