[Vtigercrm-commits] [vtiger-commits] r6977 - in /vtigercrm/branches/4.2: data/CRMEntity.php export.php index.php install.php phprint.php soap.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Jun 9 01:29:20 EDT 2006


Author: allanbush
Date: Thu Jun  8 23:29:16 2006
New Revision: 6977

Log:
Inital steps for php5 support from http://forums.vtiger.com/viewtopic.php?t=6777 .  Refs #1287.  Jpgraph has not been replaced as the new version is not compatible with php4.

Modified:
    vtigercrm/branches/4.2/data/CRMEntity.php
    vtigercrm/branches/4.2/export.php
    vtigercrm/branches/4.2/index.php
    vtigercrm/branches/4.2/install.php
    vtigercrm/branches/4.2/phprint.php
    vtigercrm/branches/4.2/soap.php

Modified: vtigercrm/branches/4.2/data/CRMEntity.php
==============================================================================
--- vtigercrm/branches/4.2/data/CRMEntity.php (original)
+++ vtigercrm/branches/4.2/data/CRMEntity.php Thu Jun  8 23:29:16 2006
@@ -1025,10 +1025,7 @@
 				}
 
 
-				//$this->db->println("here is the bug");
-			
-
-				$list[] = $this;
+				$list[] = clone($this);
 			}
 		}
 
@@ -1060,10 +1057,7 @@
 				else
 					$this->db->println("rowid not set unable to retrieve");
 				 
-				 
-				
-
-				$list[] = $this;
+				$list[] = clone($this);
 			}
 		}
 

Modified: vtigercrm/branches/4.2/export.php
==============================================================================
--- vtigercrm/branches/4.2/export.php (original)
+++ vtigercrm/branches/4.2/export.php Thu Jun  8 23:29:16 2006
@@ -12,10 +12,6 @@
  * All Rights Reserved.
  * Contributor(s): ______________________________________.
  ********************************************************************************/
-
-if (substr(phpversion(), 0, 1) == "5") {
-        ini_set("zend.ze1_compatibility_mode", "1");
-}
 
 require_once('config.php');
 require_once('include/logging.php');

Modified: vtigercrm/branches/4.2/index.php
==============================================================================
--- vtigercrm/branches/4.2/index.php (original)
+++ vtigercrm/branches/4.2/index.php Thu Jun  8 23:29:16 2006
@@ -22,11 +22,11 @@
 global $entityDel;
 global $display;
 
+if (version_compare(phpversion(), '5.0') < 0) {
+	eval('function clone($object) { return $object; } ');
+}
+
 require_once('include/utils.php');
-//$phpbb_root_path='./modules/MessageBoard/';
-if (substr(phpversion(), 0, 1) == "5") {
-        ini_set("zend.ze1_compatibility_mode", "1");
-}
 
 function fetchPermissionDataForTabList()
 {

Modified: vtigercrm/branches/4.2/install.php
==============================================================================
--- vtigercrm/branches/4.2/install.php (original)
+++ vtigercrm/branches/4.2/install.php Thu Jun  8 23:29:16 2006
@@ -23,10 +23,6 @@
     	header("Location: index.php");
     	exit();
     }
-}
-
-if (substr(phpversion(), 0, 1) == "5") {
-  ini_set("zend.ze1_compatibility_mode", "1");
 }
 
 function stripslashes_checkstrings($value) {

Modified: vtigercrm/branches/4.2/phprint.php
==============================================================================
--- vtigercrm/branches/4.2/phprint.php (original)
+++ vtigercrm/branches/4.2/phprint.php Thu Jun  8 23:29:16 2006
@@ -18,10 +18,6 @@
  * theme header and footer files defined for the user as well as the module as
  * defined by the input parameters.
  ********************************************************************************/
-
-if (substr(phpversion(), 0, 1) == "5") {
-	ini_set("zend.ze1_compatibility_mode", "1");
-}
 
 if (ini_get("allow_url_fopen") != 1) {
         die("You must have the allow_url_fopen directive in your php.ini file enabled");

Modified: vtigercrm/branches/4.2/soap.php
==============================================================================
--- vtigercrm/branches/4.2/soap.php (original)
+++ vtigercrm/branches/4.2/soap.php Thu Jun  8 23:29:16 2006
@@ -12,10 +12,6 @@
  * All Rights Reserved.
  * Contributor(s): ______________________________________.
  ********************************************************************************/
-
-if (substr(phpversion(), 0, 1) == "5") {
-	ini_set("zend.ze1_compatibility_mode", "1");
-}
 
 require_once('include/logging.php');
 require_once("config.php");





More information about the vtigercrm-commits mailing list