From 912427b378aa3d38d631ad8c5cf9a005f8944641 Mon Sep 17 00:00:00 2001 From: Pavel K Date: Wed, 17 Jul 2019 08:13:27 +0300 Subject: [PATCH] A non well formed numeric value notice in Log.php A non well formed numeric value notice $this->_marks[$name]['memory'] and $this->_marks[$name]['time'] --- library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php b/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php index 3d71536..7dedaad 100644 --- a/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php +++ b/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php @@ -117,9 +117,9 @@ public function getIconData() */ public function mark($name, $logFirst = false) { if (isset($this->_marks[$name])) { - $this->_marks[$name]['time'] = round((microtime(true)-$_SERVER['REQUEST_TIME_FLOAT'])*1000-$this->_marks[$name]['time']).'ms'; + $this->_marks[$name]['time'] = round((microtime(true)-$_SERVER['REQUEST_TIME_FLOAT'])*1000-(int)$this->_marks[$name]['time']).'ms'; if (function_exists('memory_get_usage')) { - $this->_marks[$name]['memory'] = round((memory_get_usage()-$this->_marks[$name]['memory'])/1024) . 'K'; + $this->_marks[$name]['memory'] = round((memory_get_usage()-(int)$this->_marks[$name]['memory'])/1024) . 'K'; } else { $this->_marks[$name]['memory'] = 'N/A'; } @@ -218,4 +218,4 @@ public function dispatchLoopShutdown() { $this->mark('Dispatch'); } -} \ No newline at end of file +}