From 04f19022bcbc4fe9d7547727fbea16b6330b3e19 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 18 Sep 2004 20:01:29 +0000 Subject: [PATCH] Return value of callback (bug #29266) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168760 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/sqlite/functions/sqlite-create-aggregate.xml | 4 +++- reference/sqlite/functions/sqlite-create-function.xml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/reference/sqlite/functions/sqlite-create-aggregate.xml b/reference/sqlite/functions/sqlite-create-aggregate.xml index aa945fa005..b7d14de64b 100644 --- a/reference/sqlite/functions/sqlite-create-aggregate.xml +++ b/reference/sqlite/functions/sqlite-create-aggregate.xml @@ -1,5 +1,5 @@ - + sqlite_create_aggregate @@ -30,6 +30,8 @@ Once all the rows have been processed, finalize_func will be called and it should then take the data from the aggregation context and return the result. + Callback functions should return a type understood by SQLite (not + array for example). diff --git a/reference/sqlite/functions/sqlite-create-function.xml b/reference/sqlite/functions/sqlite-create-function.xml index de8cdd3491..69903def14 100644 --- a/reference/sqlite/functions/sqlite-create-function.xml +++ b/reference/sqlite/functions/sqlite-create-function.xml @@ -1,5 +1,5 @@ - + sqlite_create_function @@ -28,6 +28,8 @@ of the function that you will use in your SQL statements, callback is any valid PHP callback to specify a PHP function that should be called to handle the SQL function. + Callback function should return a type understood by SQLite (not + array for example). The optional parameter num_args is used as a hint by the SQLite expression parser/evaluator. It is recommended that you specify a value if your function will only ever accept a fixed number of