Index: branches/Ver2.4/xpressme_integration_kit/include/xml.php
===================================================================
--- branches/Ver2.4/xpressme_integration_kit/include/xml.php	(revision 835)
+++ branches/Ver2.4/xpressme_integration_kit/include/xml.php	(revision 836)
@@ -16,5 +16,9 @@
 if( ! function_exists( 'xpress_XML_unserialize' ) ) : // d3pipe Used function
 function & xpress_XML_unserialize(&$xml){
-	$xml_parser = &new xpress_XML();
+	if ( version_compare(PHP_VERSION, '5.0.0', '>')) {
+		eval('$xml_parser = new xpress_XML();');
+	}else {
+		eval('$xml_parser = &new xpress_XML();');
+	}
 	$data = &$xml_parser->parse($xml);
 	$xml_parser->destruct();
Index: branches/Ver2.4/xpressme_integration_kit/include/xpress_block_header.php
===================================================================
--- branches/Ver2.4/xpressme_integration_kit/include/xpress_block_header.php	(revision 835)
+++ branches/Ver2.4/xpressme_integration_kit/include/xpress_block_header.php	(revision 836)
@@ -36,7 +36,7 @@
 		{
 			$xml_data = str_replace('<?xml version="1.0" encoding="EUC-JP" ?>', '<?xml version="1.0" encoding="UTF-8" ?>', $xml_data);
-			$ans = mb_convert_variables('UTF-8' , 'EUC-JP', &$xml_data); //EUC-JP to UTF-8
+			$ans = mb_convert_variables('UTF-8' , 'EUC-JP', $xml_data); //EUC-JP to UTF-8
 			$ret = @xpress_XML_unserialize($xml_data);
-			$ans = mb_convert_variables('EUC-JP' , 'UTF-8', &$ret); //UTF-8 to EUC-JP
+			$ans = mb_convert_variables('EUC-JP' , 'UTF-8', $ret); //UTF-8 to EUC-JP
 		} else {
 			$ret = xpress_XML_unserialize($xml_data);
Index: branches/Ver2.4/xpressme_integration_kit/include/xpress_block_render.php
===================================================================
--- branches/Ver2.4/xpressme_integration_kit/include/xpress_block_render.php	(revision 835)
+++ branches/Ver2.4/xpressme_integration_kit/include/xpress_block_render.php	(revision 836)
@@ -35,7 +35,7 @@
 		{
 			$xml_data = str_replace('<?xml version="1.0" encoding="EUC-JP" ?>', '<?xml version="1.0" encoding="UTF-8" ?>', $xml_data);
-			$ans = mb_convert_variables('UTF-8' , 'EUC-JP', &$xml_data); //EUC-JP to UTF-8
+			$ans = mb_convert_variables('UTF-8' , 'EUC-JP', $xml_data); //EUC-JP to UTF-8
 			$ret = @xpress_XML_unserialize($xml_data);
-			$ans = mb_convert_variables('EUC-JP' , 'UTF-8', &$ret); //UTF-8 to EUC-JP
+			$ans = mb_convert_variables('EUC-JP' , 'UTF-8', $ret); //UTF-8 to EUC-JP
 		} else {
 			$ret = xpress_XML_unserialize($xml_data);
@@ -187,6 +187,10 @@
         }
 
-		$tpl =& new XoopsTpl() ;
-		$tpl->template_dir = $xoops_config->module_path . '/templates';
+		if ( version_compare(PHP_VERSION, '5.0.0', '>')) {
+			eval('$tpl = new XoopsTpl();');
+		}else {
+			eval('$tpl = & new XoopsTpl();');
+		}
+   		$tpl->template_dir = $xoops_config->module_path . '/templates';
 		if (!$tpl->template_exists($templates_file)){
 			$src_file_path = $xoops_config->module_path . '/templates/' .$mydirname. '_' . str_replace(".php", ".html", $block_function_name);
