Changeset 80
- Timestamp:
- 08/06/08 14:26:11 (4 months ago)
- Files:
-
- trunk/tests/sqlite3_22_loadextension.phpt (modified) (1 diff)
- trunk/tests/sqlite3_25_create_aggregate.phpt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tests/sqlite3_22_loadextension.phpt
r72 r80 22 22 ?> 23 23 --EXPECTF-- 24 Warning: SQLite3::loadExtension(): Unable to load extension at '. /myext.txt' in %s on line %d24 Warning: SQLite3::loadExtension(): Unable to load extension at '.%emyext.txt' in %s on line %d 25 25 bool(false) 26 26 bool(true) trunk/tests/sqlite3_25_create_aggregate.phpt
r79 r80 8 8 require_once(dirname(__FILE__) . '/new_db.inc'); 9 9 10 function sum_list_step( &$context, $string) {10 function sum_list_step($context, $num_args, $string) { 11 11 if (empty($context)) 12 12 { 13 13 $context = array('total' => 0, 'values' => array()); 14 14 } 15 var_dump($context);16 15 $context['total'] += intval($string); 17 16 $context['values'][] = $context['total']; 18 return true;17 return $context; 19 18 } 20 19 21 function sum_list_finalize(&$context) { 22 var_dump($context); 20 function sum_list_finalize($context) { 23 21 return implode(',', $context['values']); 24 22 } … … 51 49 bool(true) 52 50 bool(true) 53 51 Array 52 ( 53 [S(a)] => 1,3,6,10,14 54 [S(b)] => -1,-3,-6,-10,-14 55 ) 54 56 Closing database 55 57 bool(true)
