From: Michael J. Rubinsky Date: Wed, 10 Jun 2009 16:28:50 +0000 (-0400) Subject: resolve conflict, comment out my custom database code that I use X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dc82ad3749871f2fe0f7431f172ceb0f44396432;p=horde.git resolve conflict, comment out my custom database code that I use for profiling these tests. --- diff --git a/framework/Image/tests/im.php b/framework/Image/tests/im.php index 17440b386..d3a3130d6 100644 --- a/framework/Image/tests/im.php +++ b/framework/Image/tests/im.php @@ -10,6 +10,8 @@ define('HORDE_BASE', '/var/www/html/horde'); define('AUTH_HANDLER', true); require_once HORDE_BASE . '/lib/base.php'; +$GLOBALS['conf']['sql']['adapter'] = $GLOBALS['conf']['sql']['phptype'] == 'mysqli' ? 'mysqli' : 'pdo_' . $GLOBALS['conf']['sql']['phptype']; +$db = Horde_Db_Adapter::factory($GLOBALS['conf']['sql']); // Putting these here so they don't interfere with timing/memory data when // profiling. @@ -422,4 +424,11 @@ function logThis($effect, $time, $memory) global $driver, $logger; $logger->debug("$driver, $effect, $time, $memory"); + +// global $driver, $logger, $db; +// $sql = "INSERT INTO image_tests (test, driver, peak_memory, execution_time) VALUES (?, ?, ?, ?);"; +// $db->insert($sql, array('test' => $effect, +// 'driver' => $driver, +// 'peak_memory' => $memory, +// 'execution_time' => $time)); }