From c342ad07e0e9c8ee1552ced4360ff2dbd07213f5 Mon Sep 17 00:00:00 2001 From: Martynas Mickevicius Date: Tue, 6 Jul 2010 17:30:32 +0300 Subject: [PATCH] debug on the demo server --- libraries/chart.lib.php | 3 --- libraries/chart/pma_pchart_chart.php | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/chart.lib.php b/libraries/chart.lib.php index 1c634a8ca..8c41e62eb 100644 --- a/libraries/chart.lib.php +++ b/libraries/chart.lib.php @@ -46,12 +46,9 @@ function PMA_chart_profiling($data) $chartData[$key] = $value; } - error_reporting(E_ALL); - echo "before new"; $chart = new PMA_pChart_Pie( __('Query execution time comparison (in microseconds)'), $chartData); - echo "after new"; echo $chart->toString(); } diff --git a/libraries/chart/pma_pchart_chart.php b/libraries/chart/pma_pchart_chart.php index 8ff41fe49..3c6648ad4 100644 --- a/libraries/chart/pma_pchart_chart.php +++ b/libraries/chart/pma_pchart_chart.php @@ -33,10 +33,12 @@ abstract class PMA_pChart_Chart extends PMA_Chart protected function render() { + echo "before ob_start"; ob_start(); imagepng($this->chart->Picture); $output = ob_get_contents(); ob_end_clean(); + echo "after ob_end_clean"; $this->imageEncoded = base64_encode($output); } @@ -44,8 +46,11 @@ abstract class PMA_pChart_Chart extends PMA_Chart public function toString() { $this->prepareDataSet(); + echo "after neprepareDataSetw"; $this->prepareChart(); + echo "after prepareChart"; $this->render(); + echo "after render"; return ''; }