1--TEST--
2PDO_sqlite: Testing invalid callback for sqliteCreateAggregate()
3--SKIPIF--
4<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
5--FILE--
6<?php
7
8$pdo = new PDO('sqlite::memory:');
9
10$pdo->sqliteCreateAggregate('foo', 'a', '');
11$pdo->sqliteCreateAggregate('foo', 'strlen', '');
12
13?>
14--EXPECTF--
15Warning: PDO::sqliteCreateAggregate(): function 'a' is not callable in %s on line %d
16
17Warning: PDO::sqliteCreateAggregate(): function '' is not callable in %s on line %d
18