[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0ALPHA2-1707-g621d851

Marc Delisle lem9 at users.sourceforge.net
Sat Dec 4 13:02:14 CET 2010


The branch, master has been updated
       via  621d851c5f0dcf063af2120f8984773e580d7a84 (commit)
      from  79f320e95104ba4017d1ad78b81c3964c7df4871 (commit)


- Log -----------------------------------------------------------------
commit 621d851c5f0dcf063af2120f8984773e580d7a84
Author: Marc Delisle <marc at infomarc.info>
Date:   Sat Dec 4 07:02:06 2010 -0500

    zend.ze1_compatibility_mode removed in PHP 5.3

-----------------------------------------------------------------------

Summary of changes:
 libraries/common.inc.php |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/libraries/common.inc.php b/libraries/common.inc.php
index dda4b95..1a140bb 100644
--- a/libraries/common.inc.php
+++ b/libraries/common.inc.php
@@ -57,20 +57,25 @@ require './libraries/Error_Handler.class.php';
 $GLOBALS['error_handler'] = new PMA_Error_Handler();
 $cfg['Error_Handler']['display'] = TRUE;
 
-// at this point PMA_PHP_INT_VERSION is not yet defined
-if (version_compare(phpversion(), '6', 'lt')) {
+/*
+ * This setting was removed in PHP 5.3. But at this point PMA_PHP_INT_VERSION 
+ * is not yet defined so we use another way to find out the PHP version.
+ */
+if (version_compare(phpversion(), '5.3', 'lt')) {
     /**
      * Avoid object cloning errors
      */
     @ini_set('zend.ze1_compatibility_mode', false);
-
-    /**
-     * Avoid problems with magic_quotes_runtime
-     */
-    @ini_set('magic_quotes_runtime', false);
 }
 
 /**
+ * Avoid problems with magic_quotes_runtime
+ * (in the future, this setting will be removed but it's not yet
+ * known in which PHP version)
+ */
+ at ini_set('magic_quotes_runtime', false);
+
+/**
  * for verification in all procedural scripts under libraries
  */
 define('PHPMYADMIN', true);


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list