From: <var...@us...> - 2022-01-20 15:27:16
|
Revision: 10918 http://sourceforge.net/p/phpwiki/code/10918 Author: vargenau Date: 2022-01-20 15:27:13 +0000 (Thu, 20 Jan 2022) Log Message: ----------- Remove _DEBUG_APD Modified Paths: -------------- trunk/lib/config.php trunk/lib/main.php trunk/lib/prepend.php trunk/tests/unit/test.php Modified: trunk/lib/config.php =================================================================== --- trunk/lib/config.php 2022-01-20 15:22:30 UTC (rev 10917) +++ trunk/lib/config.php 2022-01-20 15:27:13 UTC (rev 10918) @@ -43,7 +43,6 @@ define ('_DEBUG_PARSER', 4); // verbose parsing steps define ('_DEBUG_TRACE', 8); // test php memory usage, prints php debug backtraces define ('_DEBUG_INFO', 16); -define ('_DEBUG_APD', 32); // APD tracing/profiling define ('_DEBUG_LOGIN', 64); // verbose login debug-msg (settings and reason for failure) define ('_DEBUG_SQL', 128); // force check db, force optimize, print some debugging logs define ('_DEBUG_REMOTE', 256); // remote debug into subrequests (xmlrpc, ajax, wikiwyg, ...) Modified: trunk/lib/main.php =================================================================== --- trunk/lib/main.php 2022-01-20 15:22:30 UTC (rev 10917) +++ trunk/lib/main.php 2022-01-20 15:27:13 UTC (rev 10918) @@ -1387,13 +1387,9 @@ validateSessionPath(); global $request; - if ((DEBUG & _DEBUG_APD) and extension_loaded("apd")) { - //apd_set_session_trace(9); - apd_set_pprof_trace(); - } + global $ErrorManager; // Postpone warnings - global $ErrorManager; if (defined('E_STRICT')) // and (E_ALL & E_STRICT)) // strict php5? $ErrorManager->setPostponedErrorMask(E_NOTICE | E_USER_NOTICE | E_USER_WARNING | E_WARNING | E_STRICT | E_DEPRECATED); else Modified: trunk/lib/prepend.php =================================================================== --- trunk/lib/prepend.php 2022-01-20 15:22:30 UTC (rev 10917) +++ trunk/lib/prepend.php 2022-01-20 15:27:13 UTC (rev 10918) @@ -58,9 +58,6 @@ xdebug_start_trace("trace"); // on Dbgp protocol add 2 xdebug_enable(); } -if (defined('DEBUG') and (DEBUG & 32) and extension_loaded("apd")) { - apd_set_pprof_trace(); -} // Used for debugging purposes class DebugTimer Modified: trunk/tests/unit/test.php =================================================================== --- trunk/tests/unit/test.php 2022-01-20 15:22:30 UTC (rev 10917) +++ trunk/tests/unit/test.php 2022-01-20 15:27:13 UTC (rev 10918) @@ -305,7 +305,6 @@ 'PARSER' => 4, 'TRACE' => 8, 'INFO' => 16, - 'APD' => 32, 'LOGIN' => 64, 'SQL' => 128, 'REMOTE' => 256, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |