summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2008-07-31 17:13:31 +0000
committerScott MacVicar <scottmac@php.net>2008-07-31 17:13:31 +0000
commit00788aa163fe287cad466ccf46d3d453a664e142 (patch)
tree66efadd004b1dbcc617ea71fc7c98e8e6d476c8a
parent76cf0f6e6bde95a0612c7c73e0d9bb9121380253 (diff)
downloadphp-git-00788aa163fe287cad466ccf46d3d453a664e142.tar.gz
Fix test
-rw-r--r--ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt14
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt b/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt
index d11bfd739d..05913f89a9 100644
--- a/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt
+++ b/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt
@@ -7,19 +7,17 @@ SQLite3::createAggregate() test
require_once(dirname(__FILE__) . '/new_db.inc');
-function sum_list_step(&$context, $string) {
+function sum_list_step($context, $num_args, $string) {
if (empty($context))
{
$context = array('total' => 0, 'values' => array());
}
- var_dump($context);
$context['total'] += intval($string);
$context['values'][] = $context['total'];
- return true;
+ return $context;
}
-function sum_list_finalize(&$context) {
- var_dump($context);
+function sum_list_finalize($context) {
return implode(',', $context['values']);
}
@@ -50,7 +48,11 @@ bool(true)
bool(true)
bool(true)
bool(true)
-
+Array
+(
+ [S(a)] => 1,3,6,10,14
+ [S(b)] => -1,-3,-6,-10,-14
+)
Closing database
bool(true)
Done