From be76bd5278ff3c9b772df6acc9a9623f6fafe199 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 10 Jun 2005 02:50:37 +0000 Subject: work in progress on UDF. Something is hokey in HEAD, checking it in to try it on another box. --- ext/pdo_sqlite/php_pdo_sqlite_int.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'ext/pdo_sqlite/php_pdo_sqlite_int.h') diff --git a/ext/pdo_sqlite/php_pdo_sqlite_int.h b/ext/pdo_sqlite/php_pdo_sqlite_int.h index ee57fa378c..94b0d28c62 100644 --- a/ext/pdo_sqlite/php_pdo_sqlite_int.h +++ b/ext/pdo_sqlite/php_pdo_sqlite_int.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2004 The PHP Group | + | Copyright (c) 1997-2005 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.0 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -30,9 +30,26 @@ typedef struct { char *errmsg; } pdo_sqlite_error_info; +struct pdo_sqlite_fci { + zend_fcall_info fci; + zend_fcall_info_cache fcc; +}; + +struct pdo_sqlite_func { + struct pdo_sqlite_func *next; + + zval *func, *step, *fini; + int argc; + const char *funcname; + + /* accelerated callback references */ + struct pdo_sqlite_fci afunc, astep, afini; +}; + typedef struct { sqlite3 *db; pdo_sqlite_error_info einfo; + struct pdo_sqlite_func *funcs; } pdo_sqlite_db_handle; typedef struct { -- cgit v1.2.1