Hiya.
I downloaded and installed the USPS Methods 6.1a module, along with the required xml files, and lo and behold (I knew this wasn't going to be "easy" lol) I get this error in my admin panel when I go to download and re-install the module (per the instructions that came with the add on) Deprecated: Assigning the return value of new by reference is deprecated in /home/xxxxxxx/xxxxxx_xxxx/admin/includes/classes/xml_5.php on line 25.
I followed the instructions step by step, and VERY slowly, triple checking the whole way making sure I was putting what goes where in the correct spots. Any ideas on this error and why I am getting it? Any advice on fixing it?
Here is the string of coding:
//##################################################################################
// XML_unserialize: takes raw XML as a parameter (a string)
// and returns an equivalent PHP data structure
//##################################################################################
function & XML_unserialize(&$xml){
$xml_parser = &new XML(); <--------------------------- LINE 25
$data = &$xml_parser->parse($xml);
$xml_parser->destruct();
return $data;
}
//##################################################################################
// XML_serialize: serializes any PHP data structure into XML
// Takes one parameter: the data to serialize. Must be an array.
//##################################################################################
function & XML_serialize(&$data, $level = 0, $prior_key = NULL){
if($level == 0){ ob_start(); echo '<?xml version="1.0" ?>',"\n"; }
while(list($key, $value) = each($data))