From 042d79825e69072e30f7c6d0bfee7748546f2846 Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 4 Mar 2015 16:01:30 +0000 Subject: [PATCH] Remove commented code git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@9599 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/prepend.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/prepend.php b/lib/prepend.php index 154da69e6..b6879191d 100644 --- a/lib/prepend.php +++ b/lib/prepend.php @@ -7,18 +7,6 @@ // see lib/stdlib.php: phpwiki_version() define('PHPWIKI_VERSION', '1.5.3'); -/** PHP5 deprecated old-style globals if !(bool)ini_get('register_long_arrays'). - * See Bug #1180115 - * We want to work with those old ones instead of the new superglobals, - * for easier coding. - */ -/* -foreach (array('SERVER','REQUEST','GET','POST','SESSION','ENV','COOKIE') as $k) { - if (!isset($GLOBALS['HTTP_'.$k.'_VARS']) and isset($GLOBALS['_'.$k])) { - $GLOBALS['HTTP_'.$k.'_VARS'] =& $GLOBALS['_'.$k]; - } -} -*/ // A new php-5.1.x feature: Turn off php-5.1.x auto_globals_jit = On, or use this mess below. if (empty($GLOBALS['HTTP_SERVER_VARS'])) { $GLOBALS['HTTP_SERVER_VARS'] =& $_SERVER; @@ -53,14 +41,6 @@ if (defined('DEBUG') and (DEBUG & 8) and extension_loaded("xdebug")) { } if (defined('DEBUG') and (DEBUG & 32) and extension_loaded("apd")) { apd_set_pprof_trace(); - /* FUNCTION_TRACE 1 - ARGS_TRACE 2 - ASSIGNMENT_TRACE 4 - STATEMENT_TRACE 8 - MEMORY_TRACE 16 - TIMING_TRACE 32 - SUMMARY_TRACE 64 */ - //apd_set_session_trace(99); } // Used for debugging purposes -- 2.45.0