1--TEST--
2PDO_sqlite: Testing sqliteCreateFunction() produces warning when
3un-callable function passed
4--CREDITS--
5Chris MacPherson chris@kombine.co.uk
6--SKIPIF--
7<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
8--FILE--
9<?php
10
11$db = new PDO( 'sqlite::memory:');
12
13$db->sqliteCreateFunction('bar-alias', 'bar');
14
15?>
16--EXPECTF--
17Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d
18