PEAR::DBでSQLiteのユーザー定義関数を作る場合、
sqlite_create_functionは使えませんか?
「Warning: sqlite_create_function() expects parameter 1 to be resource

というエラーが出るんですけど。

ソースはこんな感じです。
$db = DB::connect($dsn);
sqlite_create_function($db, 'NOW', 'time', 0);