--TEST-- SQLite3::createFunction trampoline callback --EXTENSIONS-- sqlite3 --FILE-- createfunction('strtoupper', $callback)); var_dump($db->querySingle('SELECT strtoupper("test")')); var_dump($db->querySingle('SELECT strtoupper("test")')); ?> --EXPECT-- bool(true) Trampoline for strtoupper string(4) "TEST" Trampoline for strtoupper string(4) "TEST"