XPressME Integration Kit

Trac


Ignore:
Timestamp:
Feb 9, 2013, 9:01:42 AM (11 years ago)
Author:
toemon
Message:

PHP5.4 Fatal error: Call-time pass-by-reference fixed #424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.4/xpressme_integration_kit/include/xml.php

    r615 r836  
    1616if( ! function_exists( 'xpress_XML_unserialize' ) ) : // d3pipe Used function 
    1717function & xpress_XML_unserialize(&$xml){ 
    18         $xml_parser = &new xpress_XML(); 
     18        if ( version_compare(PHP_VERSION, '5.0.0', '>')) { 
     19                eval('$xml_parser = new xpress_XML();'); 
     20        }else { 
     21                eval('$xml_parser = &new xpress_XML();'); 
     22        } 
    1923        $data = &$xml_parser->parse($xml); 
    2024        $xml_parser->destruct(); 
Note: See TracChangeset for help on using the changeset viewer.