From 8153c59d53f1c23614fade3a2565a4e7303ac917 Mon Sep 17 00:00:00 2001 From: Alexandra Nantel Date: Tue, 23 May 2017 11:00:40 -0400 Subject: [PATCH 1/4] PHP7 Compatibility release --- extension.meta.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extension.meta.xml b/extension.meta.xml index d82e79b..2322a04 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -19,6 +19,9 @@ + + - PHP7 Compatibility + - Mark compatibility with Symphony 2.6+ From f0baf7863afa33bbf1a082348a8a53166b47adb4 Mon Sep 17 00:00:00 2001 From: Alexandra Nantel Date: Thu, 24 Aug 2017 15:56:42 -0400 Subject: [PATCH 2/4] SQL and PHP cases PHP true,false,null in lowercase SQL keywords uppercase --- content/content.profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/content.profile.php b/content/content.profile.php index f10ec71..8da8334 100644 --- a/content/content.profile.php +++ b/content/content.profile.php @@ -123,15 +123,15 @@ public function buildContent(XMLElement $wrapper) { foreach ($this->_records['data-sources'] as $data) $ds_total += $data[1]; $this->_records = array( - array(__('Total Database Queries'), $this->_dbstats['queries'], NULL, NULL, false), - array(__('Slow Queries (> 0.09s)'), (string)count($this->_dbstats['slow-queries']), NULL, NULL, false), + array(__('Total Database Queries'), $this->_dbstats['queries'], null, null, false), + array(__('Slow Queries (> 0.09s)'), (string)count($this->_dbstats['slow-queries']), null, null, false), array(__('Total Time Spent on Queries'), $this->_dbstats['total-query-time']), array(__('Time Triggering All Events'), $event_total), array(__('Time Running All Data Sources'), $ds_total), array(__('XML Generation'), $xml_generation[1]), array(__('XSLT Transformation'), $xsl_transformation[1]), array(__('Output Creation Time'), Symphony::Profiler()->retrieveTotalRunningTime()), - array(__('Total Memory Usage'), General::formatFilesize(Symphony::Profiler()->retrieveTotalMemoryUsage()), NULL, NULL, false), + array(__('Total Memory Usage'), General::formatFilesize(Symphony::Profiler()->retrieveTotalMemoryUsage()), null, null, false), ); foreach ($this->_records as $data) { From f55d56a6c776f946945e1c4dd41fed6db2c7bc36 Mon Sep 17 00:00:00 2001 From: Alexandra Nantel Date: Fri, 25 Aug 2017 11:26:51 -0400 Subject: [PATCH 3/4] Relase infos .. Again --- extension.meta.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension.meta.xml b/extension.meta.xml index 2322a04..d96e9d4 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -19,7 +19,8 @@ - + + - Update for Symphony 4.x - PHP7 Compatibility From a524e1f0902c001c2493daad55b9b6d00587cf0a Mon Sep 17 00:00:00 2001 From: Alexandra Nantel Date: Tue, 20 Nov 2018 16:23:06 -0500 Subject: [PATCH 4/4] Apply patch from @nitriques. --- content/content.profile.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/content.profile.php b/content/content.profile.php index 8da8334..f1c67bf 100644 --- a/content/content.profile.php +++ b/content/content.profile.php @@ -240,19 +240,19 @@ public function buildContent(XMLElement $wrapper) { } elseif ($this->_view == 'slow-queries') { - + $value = $data[1]; if(!isset($data[4]) || $data[4] !== false){ - $data[1] = number_format($data[1], 4) . ' s'; + $value = number_format($data[1], 4) . ' s'; } - $row->appendChild(new XMLElement('td', $data[1])); + $row->appendChild(new XMLElement('td', $value)); } else { $row->appendChild(new XMLElement('td', number_format($data[1], 4) . ' s from ' . $data[4] . ' ' . ($data[4] == 1 ? 'query' : 'queries'))); } - $ds_total += $data[1]; + $ds_total += intval($data[1]); $table->appendChild($row); } }