"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/class/diag.php" between
wacko.6.1.16.zip and wacko.6.1.17.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

diag.php  (wacko.6.1.16):diag.php  (wacko.6.1.17)
skipping to change at line 27 skipping to change at line 27
{ {
chdir($cwd); chdir($cwd);
if ($config['debug'] >= 1 if ($config['debug'] >= 1
&& (!(isset($http->method) && str_contains($http->method, '.xml'))) && (!(isset($http->method) && str_contains($http->method, '.xml')))
&& $http->method != 'print' && $http->method != 'print'
&& $http->method != 'wordprocessor') && $http->method != 'wordprocessor')
{ {
if (($config['debug_admin_only'] && $engine->is_admin()) || !$config['debug_admin_only']) if (($config['debug_admin_only'] && $engine->is_admin()) || !$config['debug_admin_only'])
{ {
$overall_time = microtime(1) - WACKO_STARTED; $overall_time = microtime(true) - WACKO_STARTED;
echo '<div id="debug">' . echo '<div id="debug">' .
'<p class="debug">Program execution stat istics</p>' . "\n<ul>\n"; '<p class="debug">Program execution stat istics</p>' . "\n<ul>\n";
// get memory usage // get memory usage
if (function_exists('memory_get_peak_usage')) if (function_exists('memory_get_peak_usage'))
{ {
$execmem = memory_get_peak_usage(true); $execmem = memory_get_peak_usage(true);
} }
skipping to change at line 245 skipping to change at line 245
foreach ($args as &$arg) foreach ($args as &$arg)
{ {
if (!is_string($arg) || $arg === '' || preg_match ('/[\x00-\x1f\x7f]/', $arg)) if (!is_string($arg) || $arg === '' || preg_match ('/[\x00-\x1f\x7f]/', $arg))
{ {
$arg = Ut::stringify($arg); $arg = Ut::stringify($arg);
} }
} }
static::$log[] = [ static::$log[] = [
microtime(1), microtime(true),
$type, $type,
implode(' ', $args), implode(' ', $args),
$callee, $callee,
]; ];
} }
} }
private static function dbg_console($debug): void private static function dbg_console($debug): void
{ {
if (!($log = static::$log)) if (!($log = static::$log))
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)