$db->query('INSERT INTO foobar VALUES (NULL, "PHP")');
$db->query('INSERT INTO foobar VALUES (NULL, "PHP6")');
-$db->sqliteCreateAggregate('testing', function(&$a, $b) { $a .= $b; return $a; }, function(&$v) { return $v; });
+function test_a(&$a, $b) { $a .= $b; return $a; }
+function test_b(&$a) { return $a; }
+$db->sqliteCreateAggregate('testing', 'test_a', 'test_b');
foreach ($db->query('SELECT testing(name) FROM foobar') as $row) {
$db->query('INSERT INTO foobar VALUES (NULL, "PHP6")');
-$db->sqliteCreateFunction('testing', function($v) { return strtolower($v); });
+function test($v) { return strtolower($v); }
+$db->sqliteCreateFunction('testing', 'test');
foreach ($db->query('SELECT testing(name) FROM foobar') as $row) {